mirror of
https://shylinux.com/x/icebergs
synced 2025-06-27 02:37:31 +08:00
opt some
This commit is contained in:
parent
40d48142b6
commit
c33ddf4795
@ -11,7 +11,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func _role_keys(key ...string) string {
|
func _role_keys(key ...string) string {
|
||||||
if _key := kit.Slice(strings.Split(key[0], ice.PT), -1)[0]; _key != "" {
|
if _key := kit.Select("", strings.Split(key[0], ice.PT), -1); _key != "" {
|
||||||
if c, ok := ice.Info.Index[_key].(*ice.Context); ok && kit.Keys(c.Prefix(), _key) == key[0] {
|
if c, ok := ice.Info.Index[_key].(*ice.Context); ok && kit.Keys(c.Prefix(), _key) == key[0] {
|
||||||
key[0] = _key
|
key[0] = _key
|
||||||
}
|
}
|
||||||
|
@ -115,6 +115,9 @@ func _serve_auth(m *ice.Message, key string, cmds []string, w http.ResponseWrite
|
|||||||
if r.URL.Path == PP(SPACE) {
|
if r.URL.Path == PP(SPACE) {
|
||||||
return cmds, true
|
return cmds, true
|
||||||
}
|
}
|
||||||
|
kit.For(r.Header, func(k string, v []string) {
|
||||||
|
m.Debug("what %v: %v", k, v)
|
||||||
|
})
|
||||||
defer func() { m.Options(ice.MSG_CMDS, "", ice.MSG_SESSID, "") }()
|
defer func() { m.Options(ice.MSG_CMDS, "", ice.MSG_SESSID, "") }()
|
||||||
if aaa.SessCheck(m, m.Option(ice.MSG_SESSID)); m.Option(SHARE) != "" {
|
if aaa.SessCheck(m, m.Option(ice.MSG_SESSID)); m.Option(SHARE) != "" {
|
||||||
switch msg := m.Cmd(SHARE, m.Option(SHARE)); msg.Append(mdb.TYPE) {
|
switch msg := m.Cmd(SHARE, m.Option(SHARE)); msg.Append(mdb.TYPE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user