1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
harveyshao 2022-08-21 17:35:00 +08:00
parent 0fa74bd96e
commit 0ff9e79ac4
2 changed files with 0 additions and 8 deletions

View File

@ -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))
}

View File

@ -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)))
}