(proxy *config.Proxy)
| 19 | } |
| 20 | |
| 21 | func NewProxyHandler(proxy *config.Proxy) *ProxyHandler { |
| 22 | return &ProxyHandler{ |
| 23 | proxy: proxy, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func (m *ProxyHandler) GetRemoteAddr(r *http.Request) string { |
| 28 | if m.proxy.Enable { |
no outgoing calls