s-s / dnscloak

iOS GUI and wrapper for dnscrypt-proxy 2
Mozilla Public License 2.0
321 stars 38 forks source link

Unable to build, failure in building go framework #21

Closed eterry1388 closed 4 years ago

eterry1388 commented 4 years ago

build-ios-framework.sh fails with these errors:

.build/src/github.com/jedisct1/dnscrypt-proxy/dnscrypt-proxy/local-doh.go:56:11:
assignment mismatch: 1 variable but proxy.processIncomingQuery returns 2 values
.build/src/github.com/jedisct1/dnscrypt-proxy/dnscrypt-proxy/local-doh.go:56:40:
not enough arguments in call to proxy.processIncomingQuery
    have (*ServerInfo, string, string, []byte, *net.Addr, nil, time.Time)
    want (*ServerInfo, string, string, []byte, *net.Addr, net.Conn, time.Time, int)

I "fixed" the issue by changing this line in dnscrypt-proxy/local-doh.go:

-       response := proxy.processIncomingQuery(proxy.serversInfo.getOne(), "local_doh", proxy.mainProto, packet, &xClientAddr, nil, start)
+       response, _ := proxy.processIncomingQuery(proxy.serversInfo.getOne(), "local_doh", proxy.mainProto, packet, &xClientAddr, nil, start, 0)
s-s commented 4 years ago

Fixed, should build now. Haven't pushed local changes. -_- Thank you for noticing!