Skip to content

Commit 06a5c52

Browse files
authored
Update RemoveHostNames (#80)
1 parent 2c2b799 commit 06a5c52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/types/profile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func (p *Profile) RemoveHostnames(hostnames []string) {
6969
p.Routes[ip].HostNames = remove(p.Routes[ip].HostNames, h)
7070
if len(p.Routes[ip].HostNames) == 0 {
7171
delete(p.Routes, ip)
72+
p.IPList = remove(p.IPList, ip)
7273
}
7374
}
7475
}

0 commit comments

Comments
 (0)