diff --git a/base/tcp/server.go b/base/tcp/server.go index ac29bc3a..3775dd77 100644 --- a/base/tcp/server.go +++ b/base/tcp/server.go @@ -52,10 +52,12 @@ func _server_listen(m *ice.Message, arg ...string) { } const ( - PROTOCOL = "protocol" - HOSTPORT = "hostport" - HOSTNAME = "hostname" - NODENAME = "nodename" + PROTOCOL = "protocol" + HOSTPORT = "hostport" + HOSTNAME = "hostname" + NODENAME = "nodename" + BANDWIDTH = "bandwidth" + ADDRESS = "address" ) const ( PROTO = "proto" diff --git a/base/web/serve.go b/base/web/serve.go index 9765a555..e384e39c 100644 --- a/base/web/serve.go +++ b/base/web/serve.go @@ -224,7 +224,7 @@ func init() { if m.Option(ctx.INDEX) == "" { mdb.Config(m, ice.MAIN, "") } else { - mdb.Config(m, ice.MAIN, C(m.Option(ctx.INDEX)+nfs.PS)) + mdb.Config(m, ice.MAIN, C(m.Option(ctx.INDEX))) } }}, tcp.HOST: {Help: "公网", Hand: func(m *ice.Message, arg ...string) { m.Echo(kit.Formats(PublicIP(m))) }},