mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
add some
This commit is contained in:
parent
a075aa7975
commit
ec961b40fb
@ -45,7 +45,7 @@ func _serve_start(m *ice.Message) {
|
||||
m.Cmd(SPIDE, mdb.CREATE, dev, "dev_ip", "", "dev_ip")
|
||||
dev = ice.DEV
|
||||
}
|
||||
if msg := m.Cmds(SPIDE, dev); msg.Append(TOKEN) == "" {
|
||||
if msg := m.Cmd(SPIDE, dev); msg.Append(TOKEN) == "" {
|
||||
if m.Option(TOKEN) != "" {
|
||||
m.Sleep30ms(SPACE, tcp.DIAL, ice.DEV, dev, TOKEN, m.Option(TOKEN))
|
||||
} else {
|
||||
|
@ -62,7 +62,7 @@ func (f *Frame) Start(m *ice.Message, arg ...string) {
|
||||
default:
|
||||
m.Cmd(tcp.SERVER, tcp.LISTEN, mdb.TYPE, HTTP, mdb.NAME, logs.FileLine(1), m.OptionSimple(tcp.HOST, tcp.PORT), func(l net.Listener) {
|
||||
defer mdb.HashCreateDeferRemove(m, m.OptionSimple(mdb.NAME, tcp.PROTO), arg, cli.STATUS, tcp.START)()
|
||||
m.Go(func() { gdb.Event(m.Spawn(), SERVE_START, arg) })
|
||||
m.GoSleep("300ms", func() { gdb.Event(m.Spawn(), SERVE_START, arg) })
|
||||
if m.Option(tcp.PORT) == tcp.PORT_443 {
|
||||
m.WarnNotValid(f.Server.ServeTLS(l, nfs.ETC_CERT_PEM, nfs.ETC_CERT_KEY))
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user