mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 17:44:05 +08:00
add some
This commit is contained in:
parent
9bf29af91f
commit
01bacc73a2
@ -404,14 +404,12 @@ func init() {
|
|||||||
m.Cmd(SPACE, m.Option(mdb.NAME), SPIDE, DEV_CREATE_TOKEN, ice.Maps{CLIENT_NAME: ice.DEV, TOKEN: token})
|
m.Cmd(SPACE, m.Option(mdb.NAME), SPIDE, DEV_CREATE_TOKEN, ice.Maps{CLIENT_NAME: ice.DEV, TOKEN: token})
|
||||||
}},
|
}},
|
||||||
OPEN: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
OPEN: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
||||||
if m.Option(mdb.TYPE) == ORIGIN && m.IsLocalhost() {
|
if m.Option(mdb.TYPE) == ORIGIN {
|
||||||
m.ProcessOpen(SpideOrigin(m, m.Option(mdb.NAME)))
|
m.ProcessOpen(SpideOrigin(m, m.Option(mdb.NAME)))
|
||||||
|
} else if p := ProxyDomain(m, m.Option(mdb.NAME)); p != "" {
|
||||||
|
m.ProcessOpen(p)
|
||||||
} else {
|
} else {
|
||||||
if p := ProxyDomain(m, m.Option(mdb.NAME)); p != "" {
|
m.ProcessOpen(S(m.Option(mdb.NAME)))
|
||||||
m.ProcessOpen(p)
|
|
||||||
} else {
|
|
||||||
m.ProcessOpen(S(m.Option(mdb.NAME)))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
DREAM_OPEN: {Hand: func(m *ice.Message, arg ...string) {}},
|
DREAM_OPEN: {Hand: func(m *ice.Message, arg ...string) {}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user