Skip to content

Commit 1c4e243

Browse files
[BUGFIX] Fix shadowing of iface variable
1 parent 011b141 commit 1c4e243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func parse_load_balancers(args []string, tunnel bool) {
196196

197197
// Obtaining the interface name of the load balancer IP's doesn't make sense in tunnel mode
198198
if !tunnel {
199-
iface := get_iface_from_ip(lb_ip)
199+
iface = get_iface_from_ip(lb_ip)
200200
if iface == "" {
201201
log.Fatal("[FATAL] IP address not associated with an interface ", lb_ip)
202202
}

0 commit comments

Comments
 (0)