diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-13 12:54:44 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-13 12:54:44 +0300 |
| commit | 9a89d7bfab1d7d3597f0c54176fc91e498fad5bc (patch) | |
| tree | 0fbc80696d5c30b8074c43a24ffe3a2d8479c2d6 | |
| parent | edd6b22109accd41ee664f0ee988651ba31bb098 (diff) | |
spin only in reload time
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
| -rw-r--r-- | web/html/xui/inbounds.html | 4 | ||||
| -rw-r--r-- | xray/inbound.go | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index a80fe79a..41942b74 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -343,7 +343,9 @@ return; } this.setInbounds(msg.obj); - this.refreshing = false; + setTimeout(() => { + this.refreshing = false; + }, 500); }, async getDefaultSettings() { const msg = await HttpUtil.post('/panel/setting/defaultSettings'); diff --git a/xray/inbound.go b/xray/inbound.go index 461c2ee7..b3f07c7e 100644 --- a/xray/inbound.go +++ b/xray/inbound.go @@ -6,7 +6,7 @@ import ( ) type InboundConfig struct { - Listen json_util.RawMessage `json:"listen"` // listen 不能为空字符串 + Listen json_util.RawMessage `json:"listen"` // listen cannot be an empty string Port int `json:"port"` Protocol string `json:"protocol"` Settings json_util.RawMessage `json:"settings"` |
