mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-29 13:02:46 -08:00
wip
This commit is contained in:
1 parent
0c25a9a045
commit
5e0392bb05
1 file changed
+4
@@ -652,7 +652,9 @@ func (c *client) reconfig(newCfg config) error {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
|
||||
oldPref := c.config.advertiseConnectorPref
|
||||
c.config = newCfg
|
||||
c.config.advertiseConnectorPref = oldPref
|
||||
|
||||
c.v4MagicIPPool = newIPPool(&(newCfg.v4MagicIPSet))
|
||||
c.v4TransitIPPool = newIPPool(&(newCfg.v4TransitIPSet))
|
||||
@@ -1120,7 +1122,9 @@ func (c *connector) lookupBySrcIPAndTransitIP(srcIP, transitIP netip.Addr) (appA
|
||||
func (c *connector) reconfig(newCfg config) error {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
oldPref := c.config.advertiseConnectorPref
|
||||
c.config = newCfg
|
||||
c.config.advertiseConnectorPref = oldPref
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user