moproxy
moproxy copied to clipboard
error when use FQDN in http upstream address
If I use FQDN instead IP in http upstream address, when starting moproxy, I get error:
run with FQDN:
$ moproxy --port 2080 --remote-dns --http squid.org:3128
error: invalid value 'squid.org:3128' for '--http <HTTP-SERVERS>': squid.org:3128 isn't a valid server address
For more information, try '--help'
run with IP: $ moproxy --port 2080 --remote-dns --http 155.254.17.151:3128 2024-04-18T12:36:25.354835Z INFO load: moproxy::server: total 1 server(s) loaded 2024-04-18T12:36:25.355699Z INFO moproxy::server: listen on [::]:2080