mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-04 15:42:20 -08:00
ipn: load hostname in Start.
This prevents hostname being forced to os.Hostname despite override when control is contacted for the first time after starting tailscaled. Signed-off-by: Dmytro Shynkevych <[email protected]>
This commit is contained in:
1 file changed
+3
@@ -353,6 +353,9 @@ func (b *LocalBackend) Start(opts Options) error {
|
||||
b.serverURL = b.prefs.ControlURL
|
||||
hostinfo.RoutableIPs = append(hostinfo.RoutableIPs, b.prefs.AdvertiseRoutes...)
|
||||
hostinfo.RequestTags = append(hostinfo.RequestTags, b.prefs.AdvertiseTags...)
|
||||
if b.prefs.Hostname != "" {
|
||||
hostinfo.Hostname = b.prefs.Hostname
|
||||
}
|
||||
|
||||
b.notify = opts.Notify
|
||||
b.netMap = nil
|
||||
|
||||
Reference in new issue
Block a user