From 9657a969596d1e1b77f800242f1b7fbd988fb01f Mon Sep 17 00:00:00 2001 From: WendelHime <6754291+WendelHime@users.noreply.github.com> Date: Mon, 3 Mar 2025 11:45:27 -0300 Subject: [PATCH] feat: renaming smart dialer option to outline option --- option/smart_dialer.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/option/smart_dialer.go b/option/smart_dialer.go index 59d797fd..d65f7b2f 100644 --- a/option/smart_dialer.go +++ b/option/smart_dialer.go @@ -1,13 +1,17 @@ package option -// SmartDialerOutboundOptions set the outbound options used by the outline-sdk +import "time" + +// OutlineOutboundOptions set the outbound options used by the outline-sdk // smart dialer. You can find more details about the parameters by looking // through the implementation: https://github.com/Jigsaw-Code/outline-sdk/blob/v0.0.18/x/smart/stream_dialer.go#L65-L100 // Or check the documentation README: https://github.com/Jigsaw-Code/outline-sdk/tree/v0.0.18/x/smart -type SmartDialerOutboundOptions struct { +type OutlineOutboundOptions struct { DialerOptions - DNSResolvers []DNSEntryConfig `json:"dns,omitempty"` - TLS []string `json:"tls,omitempty"` + DNSResolvers []DNSEntryConfig `json:"dns,omitempty" yaml:"dns,omitempty"` + TLS []string `json:"tls,omitempty" yaml:"tls,omitempty"` + TestTimeout *time.Duration `json:"test_timeout" yaml:"-"` + Domains []string `json:"domains" yaml:"-"` } // DNSEntryConfig specifies a list of resolvers to test and they can be one of