mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
opt some
This commit is contained in:
parent
0fa74bd96e
commit
0ff9e79ac4
@ -90,7 +90,6 @@ func _serve_spide(m *ice.Message, prefix string, c *ice.Context) {
|
||||
}
|
||||
}
|
||||
func _serve_start(m *ice.Message) {
|
||||
ice.Info.Domain = kit.Select(kit.Format("%s://%s:%s", m.Option(tcp.PROTO), kit.Select(m.Cmd(tcp.HOST).Append(aaa.IP), m.Option(tcp.HOST)), m.Option(tcp.PORT)), ice.Info.Domain)
|
||||
if cli.NodeInfo(m, SERVER, kit.Select(ice.Info.HostName, m.Option("nodename"))); m.Option(tcp.PORT) == tcp.RANDOM {
|
||||
m.Option(tcp.PORT, m.Cmdx(tcp.PORT, aaa.RIGHT))
|
||||
}
|
||||
|
@ -29,13 +29,6 @@ func _space_domain(m *ice.Message) (link string) {
|
||||
if link == "" {
|
||||
link = m.Option(ice.MSG_USERWEB)
|
||||
}
|
||||
if link == "" && m.R != nil && m.R.Host != "" && !tcp.IsLocalHost(m, m.R.Host) {
|
||||
if m.R.TLS == nil {
|
||||
link = kit.Format("http://%s", m.R.Host)
|
||||
} else {
|
||||
link = kit.Format("https://%s", m.R.Host)
|
||||
}
|
||||
}
|
||||
if link == "" {
|
||||
link = kit.Format("http://localhost:%s", kit.Select(m.Option(tcp.PORT), m.Cmd(SERVE).Append(tcp.PORT)))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user