mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
Revert "syz-manager: if running on GCE use GCE public IP address"
This reverts commit 273e386b71
.
The error handling in the function is somewhat unusual,
and the code was correct. GCE address took precedence.
This commit is contained in:
parent
6dfd45e1d0
commit
9f7c6d1294
@ -1178,12 +1178,12 @@ func (mgr *Manager) dashboardReporter() {
|
||||
func publicWebAddr(addr string) string {
|
||||
_, port, err := net.SplitHostPort(addr)
|
||||
if err == nil && port != "" {
|
||||
if GCE, err := gce.NewContext(); err == nil {
|
||||
addr = net.JoinHostPort(GCE.ExternalIP, port)
|
||||
}
|
||||
if host, err := os.Hostname(); err == nil {
|
||||
addr = net.JoinHostPort(host, port)
|
||||
}
|
||||
if GCE, err := gce.NewContext(); err == nil {
|
||||
addr = net.JoinHostPort(GCE.ExternalIP, port)
|
||||
}
|
||||
}
|
||||
return "http://" + addr
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user