Skip to content

Commit

Permalink
Set roundtripper
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Dec 12, 2024
1 parent f954327 commit e5d2e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internalsdk/ios/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func Configure(configFolderPath string, userID int, proToken, deviceID string, r
configFolderPath: configFolderPath,
hardcodedProxies: hardcodedProxies,
uc: uc,
rt: proxied.ParallelPreferChained(),
}
return cf.Configure(userID, proToken, refreshProxies)
}
Expand Down Expand Up @@ -130,7 +131,7 @@ func (cf *configurer) Configure(userID int, proToken string, refreshProxies bool
defer log.Debug("Set up fronting")
if frontingErr := cf.configureFronting(global, shortFrontedAvailableTimeout); frontingErr != nil {
log.Errorf("Unable to configure fronting on first try, update global config directly from GitHub and try again: %v", frontingErr)
global, globalUpdated = cf.updateGlobal(&http.Transport{}, global, globalEtag, "https://raw.githubusercontent.com/getlantern/lantern-binaries/main/cloud.yaml.gz")
global, globalUpdated = cf.updateGlobal(http.DefaultTransport, global, globalEtag, "https://raw.githubusercontent.com/getlantern/lantern-binaries/main/cloud.yaml.gz")
return cf.configureFronting(global, longFrontedAvailableTimeout)
}
return nil
Expand Down

0 comments on commit e5d2e49

Please sign in to comment.