option: Fix marshal legacy DNS options

This commit is contained in:
世界
2025-07-08 13:12:26 +08:00
parent 390e30ae7b
commit 7073f2a272
8 changed files with 79 additions and 37 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func NewTCP(ctx context.Context, logger log.ContextLogger, tag string, options o
if err != nil {
return nil, err
}
serverAddr := options.ServerOptions.Build()
serverAddr := options.DNSServerAddressOptions.Build()
if serverAddr.Port == 0 {
serverAddr.Port = 53
}