Skip to content

Commit

Permalink
don't skip first ip in dns range
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Feb 1, 2024
1 parent 38efe4f commit c606838
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tunnel/intercept/iputils.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ func SetDnsInterceptIpRange(cidr string) error {
// get last ip in range for logging
_, dnsIpHigh := extnetip.Range(dnsPrefix)

// skip network address
dnsCurrentIpMtx.Lock()
dnsCurrentIp = dnsPrefix.Addr().Next()
dnsCurrentIp = dnsPrefix.Addr()
dnsCurrentIpMtx.Unlock()
pfxlog.Logger().Infof("dns intercept IP range: %v - %v", dnsCurrentIp, dnsIpHigh)
return nil
Expand Down

0 comments on commit c606838

Please sign in to comment.