diff --git a/.github/workflows/mobile-build-validation.yml b/.github/workflows/mobile-build-validation.yml index 852964842..e5a5ff485 100644 --- a/.github/workflows/mobile-build-validation.yml +++ b/.github/workflows/mobile-build-validation.yml @@ -38,7 +38,7 @@ jobs: - name: Setup NDK run: /usr/local/lib/android/sdk/cmdline-tools/7.0/bin/sdkmanager --install "ndk;23.1.7779620" - name: install gomobile - run: go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20230531173138-3c911d8e3eda + run: go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20240404231514-09dbf07665ed - name: gomobile init run: gomobile init - name: build android netbird lib @@ -56,10 +56,10 @@ jobs: with: go-version: "1.21.x" - name: install gomobile - run: go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20230531173138-3c911d8e3eda + run: go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20240404231514-09dbf07665ed - name: gomobile init run: gomobile init - name: build iOS netbird lib - run: PATH=$PATH:$(go env GOPATH) gomobile bind -target=ios -bundleid=io.netbird.framework -ldflags="-X github.com/netbirdio/netbird/version.version=buildtest" -o $GITHUB_WORKSPACE/NetBirdSDK.xcframework $GITHUB_WORKSPACE/client/ios/NetBirdSDK + run: PATH=$PATH:$(go env GOPATH) gomobile bind -target=ios -bundleid=io.netbird.framework -ldflags="-X github.com/netbirdio/netbird/version.version=buildtest" -o ./NetBirdSDK.xcframework ./client/ios/NetBirdSDK env: CGO_ENABLED: 0 \ No newline at end of file diff --git a/client/internal/dns/local.go b/client/internal/dns/local.go index ba4ae42d9..6a459794b 100644 --- a/client/internal/dns/local.go +++ b/client/internal/dns/local.go @@ -31,6 +31,8 @@ func (d *localResolver) ServeDNS(w dns.ResponseWriter, r *dns.Msg) { response := d.lookupRecord(r) if response != nil { replyMessage.Answer = append(replyMessage.Answer, response) + } else { + replyMessage.Rcode = dns.RcodeNameError } err := w.WriteMsg(replyMessage)