Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyech committed Jun 24, 2024
1 parent e5ccea9 commit 7c54392
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/registrars/dns-registrar/examples/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
)

const key = "0b63baad7f2f4bb5b547c53adc0fbb179852910607935e6f4b5639fd989b1156"
const bufSize = 8192

func main() {
var remoteAddr = flag.String("saddr", "127.0.0.1:6666", "remote address")
Expand Down
3 changes: 3 additions & 0 deletions pkg/registrars/registration/dns-registrar.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func NewDNSRegistrar(config *Config) (*DNSRegistrar, error) {
}

tworeq, err := tworeqresp.NewRequester(req, 80)
if err != nil {
return nil, fmt.Errorf("error adding fragmentation layer: %v", err)
}

ip, err := getPublicIp(config.STUNAddr)
if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions pkg/regserver/dnsregserver/dnsregserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ func NewDNSRegServer(domain string, udpAddr string, privkey []byte, regprocessor
}

tworesponder, err := tworeqresp.NewResponder(respder)
if err != nil {
return nil, fmt.Errorf("error adding fragmentation layer: %v", err)
}

return &DNSRegServer{
dnsResponder: tworesponder,
Expand Down

0 comments on commit 7c54392

Please sign in to comment.