mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-14 11:31:57 +00:00
cmd/containerboot: fix broken tests
The tests were broken in a61a9ab087, maybe
even earlier.
Updates #502
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@@ -297,8 +297,10 @@ authLoop:
|
||||
log.Fatalf("tailscaled left running state (now in state %q), exiting", *n.State)
|
||||
}
|
||||
if n.NetMap != nil {
|
||||
if cfg.ProxyTo != "" && len(n.NetMap.Addresses) > 0 && deephash.Update(¤tIPs, &n.NetMap.Addresses) {
|
||||
if err := installIPTablesRule(ctx, cfg.ProxyTo, n.NetMap.Addresses); err != nil {
|
||||
addrs := n.NetMap.SelfNode.Addresses().AsSlice()
|
||||
if cfg.ProxyTo != "" && len(addrs) > 0 && deephash.Update(¤tIPs, &addrs) {
|
||||
log.Printf("Installing proxy rules")
|
||||
if err := installIPTablesRule(ctx, cfg.ProxyTo, addrs); err != nil {
|
||||
log.Fatalf("installing proxy rules: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user