mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-26 19:31:46 +01:00
fixed startup crash for file provider
This commit is contained in:
@@ -30,6 +30,10 @@ type (
|
||||
var NewProxyEntries = F.NewMapOf[string, *ProxyEntry]
|
||||
|
||||
func (e *ProxyEntry) SetDefaults() {
|
||||
if e.ProxyProperties == nil {
|
||||
e.ProxyProperties = &D.ProxyProperties{}
|
||||
}
|
||||
|
||||
if e.Scheme == "" {
|
||||
switch {
|
||||
case strings.ContainsRune(e.Port, ':'):
|
||||
|
||||
Reference in New Issue
Block a user