Skip to content

Commit b6091c7

Browse files
committed
ipn/wg: add dns IP to allowed ips
1 parent 7f7680b commit b6091c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

intra/ipn/wgproxy.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ func (w *wgproxy) update(id, txt string) bool {
387387
const anew = false // cannot update in-place; create new tunnel
388388
status := w.status.Load()
389389
if status == END {
390-
log.W("proxy: wg: update(%s<>%s): END; status(%s)", id, w.id, status)
390+
log.W("proxy: wg: update(%s<>%s): END; status(%s)", id, w.id, pxstatus(status))
391391
return anew
392392
}
393393
if status == TNT {
394-
log.W("proxy: wg: update(%s<>%s): TNT; status(%s) - marking session as un-updatable", id, w.id, status)
394+
log.W("proxy: wg: update(%s<>%s): TNT; status(%s) - marking session as un-updatable", id, w.id, pxstatus(status))
395395
return anew
396396
}
397397

@@ -506,7 +506,8 @@ func wgIfConfigOf(id string, txtptr *string) (opts wgifopts, err error) {
506506
}
507507
case "dns": // may exist more than once: github.com/celzero/rethink-app/issues/1298
508508
n := loadMH(opts.dns, v)
509-
log.D("proxy: wg: %s ifconfig: dns(%d) %s", id, n, v)
509+
aerr := loadIPNets(&opts.allowed, v)
510+
log.D("proxy: wg: %s ifconfig: dns(%d) %s; allowed err? %v", id, n, v, aerr)
510511
case "mtu":
511512
maxxed := false
512513
if len(v) <= 0 || v == AUTOMTU || v == AUTOMTU2 {

0 commit comments

Comments
 (0)