diff --git a/services/bypass.go b/services/bypass.go index d12fe861d..85d697996 100644 --- a/services/bypass.go +++ b/services/bypass.go @@ -28,14 +28,6 @@ import ( "github.com/getlantern/flashlight/v7/proxied" ) -var ( - - // some pluggable transports don't work with bypass - unsupportedTransports = map[string]bool{ - "broflake": true, - } -) - // The way lantern-cloud is configured, we need separate URLs for domain fronted vs proxied traffic. const ( dfEndpoint = "https://iantem.io/api/v1/bypass" @@ -52,6 +44,13 @@ const ( version int32 = 1 ) +var ( + // some pluggable transports don't work with bypass + unsupportedTransports = map[string]bool{ + "broflake": true, + } +) + type bypassService struct { infos map[string]*commonconfig.ProxyConfig proxies []*proxy diff --git a/services/config.go b/services/config.go index 50383da02..82d18c77e 100644 --- a/services/config.go +++ b/services/config.go @@ -83,7 +83,7 @@ type ConfigService struct { } // StartConfigService starts a new config service with the given options. It will return an error -// if opts.Rt, opts.Fetcher, or opts.OnConfig are nil. +// if opts.OriginURL, opts.Rt, opts.Fetcher, or opts.OnConfig are nil. func StartConfigService(opts *Options) (*ConfigService, error) { switch { case opts.Rt == nil: diff --git a/services/fetcher.go b/services/http.go similarity index 100% rename from services/fetcher.go rename to services/http.go