Skip to content

Commit

Permalink
renamed fetcher.go to http.go
Browse files Browse the repository at this point in the history
  • Loading branch information
garmr-ulfr committed Jul 16, 2024
1 parent 159e65d commit 148f4f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions services/bypass.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion services/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.

0 comments on commit 148f4f0

Please sign in to comment.