mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
add some
This commit is contained in:
parent
12c66f89bb
commit
95ef705c49
@ -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",
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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) != "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user