Skip to content

Commit

Permalink
Don't serve DNS proxy, when 'dns' config is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Jun 5, 2020
1 parent 1bd69d8 commit 224b5ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ func (l *vpnLink) waitAndConfig(config *Config) {
l.errChan <- err
}

startDNS(l, config)
if len(config.DNS) > 0 {
startDNS(l, config)
}

// set routes
log.Printf("Setting routes on %s interface", l.name)
Expand Down

0 comments on commit 224b5ad

Please sign in to comment.