forked from x/icebergs
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))
|
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) {
|
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...) }},
|
tcp.SEND: {Hand: func(m *ice.Message, arg ...string) { _broad_send(m, "", "", "", "", arg...) }},
|
||||||
}, gdb.EventsAction(SERVE_START), mdb.HashAction(mdb.SHORT, "host,port",
|
}, gdb.EventsAction(SERVE_START), mdb.HashAction(mdb.SHORT, "host,port",
|
||||||
|
@ -75,7 +75,7 @@ func init() {
|
|||||||
origin := SpideOrigin(m, arg[0])
|
origin := SpideOrigin(m, arg[0])
|
||||||
kit.If(origin == "", func() { arg[0], origin, dream = ice.DEV, arg[0], arg[0]+dream })
|
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)...) {
|
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 {
|
} else {
|
||||||
origin = tcp.PublishLocalhost(m, origin)
|
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))
|
env = append(env, cli.CTX_REPOS, m.Option(nfs.SOURCE))
|
||||||
fallthrough
|
fallthrough
|
||||||
case nfs.BINARY, ice.APP:
|
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])
|
env = append(env, cli.CTX_DEV_IP, strings.Split(host, "?")[0])
|
||||||
}
|
}
|
||||||
if m.Option(ice.MSG_USERPOD) != "" {
|
if m.Option(ice.MSG_USERPOD) != "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user