diff --git a/internal/web/actions/default/servers/addPortPopup.go b/internal/web/actions/default/servers/addPortPopup.go index 1f082f4a..b22bbd2d 100644 --- a/internal/web/actions/default/servers/addPortPopup.go +++ b/internal/web/actions/default/servers/addPortPopup.go @@ -20,7 +20,10 @@ func (this *AddPortPopupAction) Init() { func (this *AddPortPopupAction) RunGet(params struct { ServerType string Protocol string + From string }) { + this.Data["from"] = params.From + protocols := serverconfigs.AllServerProtocolsForType(params.ServerType) if len(params.Protocol) > 0 { result := []maps.Map{} diff --git a/web/public/js/components/common/network-addresses-box.js b/web/public/js/components/common/network-addresses-box.js index f1c7c1aa..b3cf6a89 100644 --- a/web/public/js/components/common/network-addresses-box.js +++ b/web/public/js/components/common/network-addresses-box.js @@ -1,5 +1,5 @@ Vue.component("network-addresses-box", { - props: ["v-server-type", "v-addresses", "v-protocol", "v-name"], + props: ["v-server-type", "v-addresses", "v-protocol", "v-name", "v-from"], data: function () { let addresses = this.vAddresses if (addresses == null) { @@ -15,10 +15,16 @@ Vue.component("network-addresses-box", { name = "addresses" } + let from = this.vFrom + if (from == null) { + from = "" + } + return { addresses: addresses, protocol: protocol, - name: name + name: name, + from: from } }, watch: { @@ -35,7 +41,7 @@ Vue.component("network-addresses-box", { addAddr: function () { let that = this window.UPDATING_ADDR = null - teaweb.popup("/servers/addPortPopup?serverType=" + this.vServerType + "&protocol=" + this.protocol, { + teaweb.popup("/servers/addPortPopup?serverType=" + this.vServerType + "&protocol=" + this.protocol + "&from=" + this.from, { height: "16em", callback: function (resp) { var addr = resp.data.address diff --git a/web/views/@default/api/node/createPopup.html b/web/views/@default/api/node/createPopup.html index 37849cca..0acd42b3 100644 --- a/web/views/@default/api/node/createPopup.html +++ b/web/views/@default/api/node/createPopup.html @@ -12,7 +12,7 @@
通过GRPC访问API节点进程监听的网络端口。
通过GRPC访问API节点进程监听的网络端口。
可以是一个数字端口(通常不超过65535),也可以是"地址:端口"的方式。 - HTTP常用端口为80。 - HTTPS常用端口为443。 + HTTP常用端口为80。 + HTTPS常用端口为443。