mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
857baa7a27
commit
b9464d2b43
4
go.mod
4
go.mod
@ -4,7 +4,7 @@ go 1.13
|
||||
|
||||
require (
|
||||
shylinux.com/x/go-git/v5 v5.6.5
|
||||
shylinux.com/x/go-qrcode v0.0.2
|
||||
shylinux.com/x/go-qrcode v0.0.3
|
||||
shylinux.com/x/toolkits v0.7.7
|
||||
shylinux.com/x/websocket v0.0.2
|
||||
shylinux.com/x/websocket v0.0.3
|
||||
)
|
||||
|
8
go.sum
8
go.sum
@ -1,8 +1,8 @@
|
||||
shylinux.com/x/go-git/v5 v5.6.5 h1:PCsK8F6RqBhlxP7b9/WRNlqZRNLdlzXIRW2wY+ZWU/8=
|
||||
shylinux.com/x/go-git/v5 v5.6.5/go.mod h1:ACsPql4xUpodEJLKmqYNi6w8LuOOL6IHDhlxV+HGKAM=
|
||||
shylinux.com/x/go-qrcode v0.0.2 h1:/c0PLj+1RT+kUPfnZVXwgbgH5m1SxBUjM2MIKXbDk+E=
|
||||
shylinux.com/x/go-qrcode v0.0.2/go.mod h1:TlzGBENHXy19xC3AsC6h4Vs5fx2ZuDA4TZ0U3C2OeK4=
|
||||
shylinux.com/x/go-qrcode v0.0.3 h1:RMo+Vidbgq3HatLBj7DDXcTbTLFUwzis5K7TqBkD38U=
|
||||
shylinux.com/x/go-qrcode v0.0.3/go.mod h1:KAbtU+KwiiABMZ/CJ0zh9PI2AX82Uf9rRYcQ4ODm4po=
|
||||
shylinux.com/x/toolkits v0.7.7 h1:2wNIYDkngTcFDBKaMg9i91liQotnJgsbxjaN8sxnrno=
|
||||
shylinux.com/x/toolkits v0.7.7/go.mod h1:CHDJarGlDkg60kVsvMLYL/a5hAnRLEOShiEsMOuEp0Q=
|
||||
shylinux.com/x/websocket v0.0.2 h1:aeeZyAsh6QN7+l5oMXlO9/rlQgx6CHvDtpZyAqMCSlU=
|
||||
shylinux.com/x/websocket v0.0.2/go.mod h1:yMcu4XS6JB11YRISXwvubh7dPM6rWPdzIRv0CrshQBY=
|
||||
shylinux.com/x/websocket v0.0.3 h1:edhLwCp0Mv1ITXqIwbVWdXdX2+vui/jRnS25K89k68I=
|
||||
shylinux.com/x/websocket v0.0.3/go.mod h1:3UGWkjTu3ie5NAZen7J+uLPBrO7DFeKloj6Jxo13Oiw=
|
||||
|
@ -157,7 +157,7 @@ func init() {
|
||||
if mdb.HashSelect(m, m.Option(tcp.PORT)).Length() > 0 {
|
||||
mdb.HashModify(m, m.Option(tcp.PORT), mdb.STATUS, tcp.OPEN)
|
||||
} else {
|
||||
mdb.HashCreate(m.Spawn(), m.OptionSimple(mdb.HashField(m)), mdb.STATUS, tcp.OPEN)
|
||||
mdb.HashCreate(m.Spawn(), m.OptionSimple(mdb.Config(m, mdb.FIELDS)), mdb.STATUS, tcp.OPEN)
|
||||
m.Cmd("", ctx.LOAD, m.OptionSimple(AUTHKEY))
|
||||
}
|
||||
m.Go(func() {
|
||||
@ -195,10 +195,9 @@ func init() {
|
||||
}
|
||||
}},
|
||||
}, mdb.StatusHashAction(
|
||||
mdb.SHORT, tcp.PORT, mdb.FIELD, "time,port,status,private,authkey,count", mdb.FIELDS, "time,id,type,name,text",
|
||||
mdb.SHORT, tcp.PORT, mdb.FIELDS, "time,port,status,private,authkey,count", mdb.FIELD, "time,id,type,name,text",
|
||||
WELCOME, "welcome to contexts world\r\n", GOODBYE, "goodbye of contexts world\r\n",
|
||||
)), Hand: func(m *ice.Message, arg ...string) {
|
||||
m.Fields(len(arg), mdb.Config(m, mdb.FIELD), mdb.Config(m, mdb.FIELDS))
|
||||
if mdb.ZoneSelect(m, arg...); len(arg) == 0 {
|
||||
m.PushAction(aaa.INVITE, mdb.INSERT, ctx.LOAD, ctx.SAVE, mdb.REMOVE)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user