Skip to content

Commit

Permalink
Update RemoveHostNames (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkasun committed Mar 16, 2022
1 parent 2c2b799 commit 06a5c52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/types/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (p *Profile) RemoveHostnames(hostnames []string) {
p.Routes[ip].HostNames = remove(p.Routes[ip].HostNames, h)
if len(p.Routes[ip].HostNames) == 0 {
delete(p.Routes, ip)
p.IPList = remove(p.IPList, ip)
}
}
}
Expand Down

0 comments on commit 06a5c52

Please sign in to comment.