perf: 优化终端端点 Host 字段帮助

This commit is contained in:
Bai
2023-05-26 17:13:22 +08:00
committed by Jiangjie.Bai
parent 24a98eb747
commit 7708812556
3 changed files with 276 additions and 256 deletions

View File

@@ -33,7 +33,12 @@ class EndpointSerializer(BulkModelSerializer):
'comment', 'date_created', 'date_updated', 'created_by'
]
extra_kwargs = {
'host': {'help_text': _('Visit IP/Host, if empty, use the current request instead')},
'host': {'help_text': _(
'The host address accessed when connecting to assets, if it is empty, '
'the access address of the current browser will be used '
'(the default endpoint does not allow modification of the host)'
)
},
}
def get_oracle_port(self, obj: Endpoint):