Skip to content

Commit

Permalink
fix zone's name check
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan committed Nov 3, 2023
1 parent e6ea6e2 commit 01a7846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loxinet/zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (z *ZoneH) GetPortZone(port string) *Zone {
func (z *ZoneH) ZonePortAdd(name string, zns string) (int, error) {
zone := z.ZonePorts[name]
if zone != nil {
if zone.Name == name {
if zone.Name == zns {
return 0, nil
}
return ZoneExistsErr, errors.New("zone exists")
Expand Down

0 comments on commit 01a7846

Please sign in to comment.