mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-26 19:31:46 +01:00
v0.5: (BREAKING) simplified config format, improved error output, updated proxy entry default value for 'port'
This commit is contained in:
@@ -40,4 +40,10 @@ func (e *ProxyEntry) SetDefaults() {
|
||||
if e.Path == "" {
|
||||
e.Path = "/"
|
||||
}
|
||||
switch e.Scheme {
|
||||
case "http":
|
||||
e.Port = "80"
|
||||
case "https":
|
||||
e.Port = "443"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user