1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 09:34:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2022-12-24 10:14:31 +08:00
parent 9a36e8fcc1
commit 56b8c16d4c
2 changed files with 4 additions and 2 deletions

View File

@ -121,9 +121,9 @@ func _serve_handle(key string, cmd *ice.Command, m *ice.Message, w http.Response
}
func _serve_domain(m *ice.Message) string {
return kit.GetValid(
func() string { return ice.Info.Domain },
func() string { return m.R.Header.Get("X-Host") },
func() string { return kit.Select("", m.R.Header.Get(Referer), m.R.Method == http.MethodPost) },
func() string { return m.R.Header.Get("X-Host") },
func() string { return ice.Info.Domain },
func() string { return kit.Format("%s://%s", kit.Select("https", ice.HTTP, m.R.TLS == nil), m.R.Host) },
)
}

View File

@ -21,6 +21,8 @@ func _action_exec(m *ice.Message, river, storm, index string, arg ...string) {
}).Length() == 0, ice.ErrNotRight, index, arg) {
return
}
m.Debug("what %v", m.Option(ice.MSG_USERWEB))
m.Debug("what %v", m.Option(ice.MSG_USERPOD))
if !ctx.PodCmd(m, index, arg) {
m.Cmdy(index, arg)
}