option: Fix marshal legacy DNS options

This commit is contained in:
世界
2025-03-15 15:58:12 +08:00
parent 390e30ae7b
commit 7073f2a272
8 changed files with 79 additions and 37 deletions

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
}