Skip to content

Commit

Permalink
improved /etc/hosts cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cjimti committed Nov 11, 2018
1 parent 8c83d4c commit 098aa35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func PortForward(wg *sync.WaitGroup, pfo *PortForwardOpts) {
fmt.Printf("Stopped forwarding %s and removing %s from hosts.\n", localIpEndPoint, localHost)
pfo.Hostfile.Hosts.RemoveDomain(localHost)
pfo.Hostfile.Hosts.RemoveDomain(nsLocalHost)

pfo.Hostfile.Hosts.RemoveDomain(fullLocalHost)
close(stopChannel)
}
}()
Expand Down

0 comments on commit 098aa35

Please sign in to comment.