1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-01 19:19:24 +08:00
This commit is contained in:
harveyshao 2022-10-29 12:56:52 +08:00
parent 13856edd6b
commit 1274909618
2 changed files with 2 additions and 5 deletions

View File

@ -250,10 +250,6 @@ func _serve_handle(key string, cmd *ice.Command, msg *ice.Message, w http.Respon
msg.Option(ice.MSG_USERPOD, msg.Option(ice.POD))
}
msg.Debug("what %v", msg.FormatMeta())
msg.Debug("what %v", msg.FormatMeta())
msg.Debug("what %v", msg.Option(CookieName(msg.Option(ice.MSG_USERWEB))))
msg.Debug("what %v", CookieName(msg.Option(ice.MSG_USERWEB)))
// 会话参数
if sessid := msg.Option(CookieName(msg.Option(ice.MSG_USERWEB))); msg.Option(ice.MSG_SESSID) == "" {
msg.Option(ice.MSG_SESSID, sessid)

View File

@ -49,12 +49,13 @@ func _xterm_get(m *ice.Message, h string) _xterm {
defer mdb.HashSelectUpdate(m, h, func(value ice.Map) { delete(value, mdb.TARGET) })
defer tty.Close()
m.Option("log.disable", ice.TRUE)
// m.Option("log.disable", ice.TRUE)
buf := make([]byte, ice.MOD_BUFS)
for {
if n, e := tty.Read(buf); !m.Warn(e) && e == nil {
m.Option(ice.MSG_DAEMON, mdb.HashSelectField(m, h, ice.VIEW))
m.Option(mdb.TEXT, string(buf[:n]))
m.Debug("what %v", m.FormatMeta())
web.PushNoticeGrow(m)
} else {
break