Skip to content

Commit 38f1da0

Browse files
committed
CLI: switch to noizdns, enable NoizDNS for sayedns profiles
1 parent cd7d6d9 commit 38f1da0

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

cli/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module slipnet-cli
22

33
go 1.24.0
44

5-
require dnstt-mobile v0.0.0
5+
require noizdns v0.0.0
66

77
require (
88
github.com/andybalholm/brotli v1.2.0 // indirect
@@ -25,6 +25,6 @@ require (
2525
)
2626

2727
replace (
28-
dnstt-mobile => ../dnstt-mobile
28+
noizdns => ../noizdns
2929
www.bamsoftware.com/git/dnstt.git => ../dnstt
3030
)

cli/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"syscall"
2323
"time"
2424

25-
"dnstt-mobile/mobile"
25+
"noizdns/mobile"
2626
)
2727

2828
// version is set at build time via -ldflags "-X main.version=..."
@@ -356,6 +356,11 @@ func main() {
356356

357357
client.SetAuthoritativeMode(authMode)
358358

359+
// Enable NoizDNS mode for sayedns profiles
360+
if profile.TunnelType == "sayedns" || profile.TunnelType == "sayedns_ssh" {
361+
client.SetNoizMode(true)
362+
}
363+
359364
if err := client.Start(); err != nil {
360365
log.Fatalf("Failed to start tunnel: %v", err)
361366
}

noizdns

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 162d595acb2d728c57530f23253baf7a1f976a7d
1+
Subproject commit 4593eb176e14bb70ff0b73fc216edb4f491fcb77

0 commit comments

Comments
 (0)