Skip to content

Commit

Permalink
feat(dns): support custom dns service port
Browse files Browse the repository at this point in the history
  • Loading branch information
Li4n0 committed May 26, 2021
1 parent b76c39e commit 7fb4c97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/cli/config.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0
version: 1.1
addr: :10000
token:
domain:
Expand All @@ -10,6 +10,7 @@ http:
ip_header:
dns:
enable: true
addr: 21
rmi:
enable: true
addr: :1099
Expand Down
1 change: 1 addition & 0 deletions pkg/dns/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ package dns

type Config struct {
Enable bool
Addr string
}
2 changes: 1 addition & 1 deletion pkg/dns/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (s *Server) Run() {
}
}()

err := server.Run(":53")
err := server.Run(s.Addr)
defer server.Close()

if err != nil {
Expand Down

0 comments on commit 7fb4c97

Please sign in to comment.