option: Fix marshal legacy DNS options

This commit is contained in:
世界
2025-03-15 15:58:12 +08:00
parent b3ad4e0e39
commit 4cbbcfb04d
8 changed files with 79 additions and 37 deletions

View File

@@ -91,7 +91,7 @@ func NewHTTPS(ctx context.Context, logger log.ContextLogger, tag string, options
if err != nil {
return nil, err
}
serverAddr := options.ServerOptions.Build()
serverAddr := options.DNSServerAddressOptions.Build()
if serverAddr.Port == 0 {
serverAddr.Port = 443
}