diff --git a/web/html/servers.html b/web/html/servers.html
index c95d93be..7a14456d 100644
--- a/web/html/servers.html
+++ b/web/html/servers.html
@@ -38,6 +38,7 @@
Name |
Address |
Port |
+ Status |
Enabled |
Actions |
@@ -212,7 +213,13 @@
if (this.modal.server.id) {
url = `/panel/api/servers/update/${this.modal.server.id}`;
}
-
+ let secretWebPath = this.modal.server.secretWebPath;
+ if (!secretWebPath.startsWith('/')) {
+ secretWebPath = '/' + secretWebPath.slice(1);
+ }
+ if (!secretWebPath.endsWith('/')) {
+ secretWebPath = secretWebPath.slice(0, -1) + '/';
+ }
console.log(this.modal.server);
axios
.post(url, this.modal.server)
diff --git a/web/service/inbound.go b/web/service/inbound.go
index 35f4b35e..04dd2851 100644
--- a/web/service/inbound.go
+++ b/web/service/inbound.go
@@ -2411,7 +2411,7 @@ func (s *InboundService) syncWithSlaves(method string, path string, contentType
continue
}
- urlStr := fmt.Sprintf("http://%s:%d%s", server.Address, server.Port, path)
+ urlStr := fmt.Sprintf("http://%s:%d/%s%s", server.Address, server.Port, server.SecretWebPath, path)
if len(params) > 0 {
urlStr = fmt.Sprintf("%s/%s", urlStr, strings.Join(params, "/"))