1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-05-13 08:08:28 +08:00
parent 12c66f89bb
commit 95ef705c49
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ func init() {
m.Cmd(SPIDE, mdb.CREATE, HostPort(m, m.Option(tcp.HOST), m.Option(tcp.PORT)), m.Option(mdb.NAME))
}},
OPEN: {Hand: func(m *ice.Message, arg ...string) {
m.ProcessOpen(HostPort(m, m.Option(mdb.NAME), m.Option(tcp.PORT)))
m.ProcessOpen(HostPort(m, m.Option(tcp.HOST), m.Option(tcp.PORT)))
}},
tcp.SEND: {Hand: func(m *ice.Message, arg ...string) { _broad_send(m, "", "", "", "", arg...) }},
}, gdb.EventsAction(SERVE_START), mdb.HashAction(mdb.SHORT, "host,port",

View File

@ -75,7 +75,7 @@ func init() {
origin := SpideOrigin(m, arg[0])
kit.If(origin == "", func() { arg[0], origin, dream = ice.DEV, arg[0], arg[0]+dream })
if kit.IsIn(kit.ParseURL(origin).Hostname(), append(m.Cmds(tcp.HOST).Appendv(aaa.IP), tcp.LOCALHOST)...) {
origin = m.Option(ice.MSG_USERHOST)
// origin = m.Option(ice.MSG_USERHOST)
} else {
origin = tcp.PublishLocalhost(m, origin)
}

View File

@ -62,7 +62,7 @@ func _publish_contexts(m *ice.Message, arg ...string) {
env = append(env, cli.CTX_REPOS, m.Option(nfs.SOURCE))
fallthrough
case nfs.BINARY, ice.APP:
if host := msg.Append(tcp.HOSTPORT); m.Option(web.DOMAIN) != host {
if host := msg.Append(tcp.HOSTPORT); !strings.HasPrefix(host, m.Option(web.DOMAIN)) {
env = append(env, cli.CTX_DEV_IP, strings.Split(host, "?")[0])
}
if m.Option(ice.MSG_USERPOD) != "" {