summaryrefslogtreecommitdiff
path: root/internal/config/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/types.go')
-rw-r--r--internal/config/types.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/config/types.go b/internal/config/types.go
index d88468e3d..8c03356b9 100644
--- a/internal/config/types.go
+++ b/internal/config/types.go
@@ -48,3 +48,11 @@ func (p *IPPrefixes) Strings() []string {
}
return strs
}
+
+func GetHTTPClientOutgoingScheme() (schema string) {
+ if GetHTTPClientInsecureOutgoing() {
+ return "http://"
+ }
+
+ return "https://"
+}