mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-06-06 07:37:21 +02:00
Fixed #507
This commit is contained in:
parent
07dc63a82c
commit
bb2d0d5b46
@ -354,7 +354,7 @@ func (router *Router) LoadProxy(matchingDomain string) (*ProxyEndpoint, error) {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if key == matchingDomain {
|
if key == strings.ToLower(matchingDomain) {
|
||||||
targetProxyEndpoint = v
|
targetProxyEndpoint = v
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@ -267,7 +267,8 @@ func (ep *ProxyEndpoint) Clone() *ProxyEndpoint {
|
|||||||
|
|
||||||
// Remove this proxy endpoint from running proxy endpoint list
|
// Remove this proxy endpoint from running proxy endpoint list
|
||||||
func (ep *ProxyEndpoint) Remove() error {
|
func (ep *ProxyEndpoint) Remove() error {
|
||||||
ep.parent.ProxyEndpoints.Delete(ep.RootOrMatchingDomain)
|
lookupHostname := strings.ToLower(ep.RootOrMatchingDomain)
|
||||||
|
ep.parent.ProxyEndpoints.Delete(lookupHostname)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user