Skip to content

Commit

Permalink
Make dhcpOptions can accept multiple addresses
Browse files Browse the repository at this point in the history
Signed-off-by: zhuanlan <[email protected]>
  • Loading branch information
Longchuanzheng authored and bobz965 committed May 15, 2024
1 parent 5994860 commit b84a0fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ovs/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ func parseDHCPOptions(raw string) map[string]string {
if len(kv) != 2 || len(kv[0]) == 0 || len(kv[1]) == 0 {
continue
}
if kv[0] == "dns_server" {
kv[1] = strings.ReplaceAll(kv[1], ";", ",")
}
dhcpOpt[kv[0]] = kv[1]
}

Expand Down

0 comments on commit b84a0fd

Please sign in to comment.