Health metrics port extraction issue --info/-i
0jk opened this issue · comments
man0j k commented
The --info argument does not accept -i localhost:9080 as stated in the readme. It crashes as seen in log.
But using IP, -i 127.0.0.1:9080 works as expected.
c:\>wireproxy.exe -i localhost:9080 -c wp.conf
2024/05/04 11:41:52 Registered I/O is unavailable: The attempted operation is not supported for the type of object referenced.
DEBUG: 2024/05/04 11:41:52 Routine: encryption worker 2 - started
DEBUG: 2024/05/04 11:41:52 Routine: decryption worker 7 - started
DEBUG: 2024/05/04 11:41:52 Routine: decryption worker 3 - started
DEBUG: 2024/05/04 11:41:52 Routine: decryption worker 2 - started
DEBUG: 2024/05/04 11:41:52 Routine: handshake worker 2 - started
DEBUG: 2024/05/04 11:41:52 Routine: encryption worker 3 - started
DEBUG: 2024/05/04 11:41:52 Routine: decryption worker 4 - started
DEBUG: 2024/05/04 11:41:52 UAPI: Updating private key
DEBUG: 2024/05/04 11:41:52 Routine: handshake worker 3 - started
DEBUG: 2024/05/04 11:41:52 Routine: encryption worker 4 - started
DEBUG: 2024/05/04 11:41:52 Routine: event worker - started
DEBUG: 2024/05/04 11:41:52 Interface up requested
DEBUG: 2024/05/04 11:41:52 Routine: handshake worker 4 - started
DEBUG: 2024/05/04 11:41:52 Routine: handshake worker 5 - started
DEBUG: 2024/05/04 11:41:52 Routine: encryption worker 5 - started
DEBUG: 2024/05/04 11:41:52 Routine: encryption worker 6 - started
DEBUG: 2024/05/04 11:41:52 Routine: handshake worker 7 - started
DEBUG: 2024/05/04 11:41:52 Routine: encryption worker 8 - started
DEBUG: 2024/05/04 11:41:52 Routine: decryption worker 6 - started
DEBUG: 2024/05/04 11:41:52 Routine: decryption worker 8 - started
DEBUG: 2024/05/04 11:41:52 Routine: handshake worker 6 - started
DEBUG: 2024/05/04 11:41:52 Routine: encryption worker 7 - started
DEBUG: 2024/05/04 11:41:52 Routine: handshake worker 8 - started
DEBUG: 2024/05/04 11:41:52 Routine: TUN reader - started
DEBUG: 2024/05/04 11:41:52 Routine: encryption worker 1 - started
DEBUG: 2024/05/04 11:41:52 Routine: decryption worker 1 - started
DEBUG: 2024/05/04 11:41:52 Routine: handshake worker 1 - started
DEBUG: 2024/05/04 11:41:52 Routine: decryption worker 5 - started
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - UAPI: Created
DEBUG: 2024/05/04 11:41:52 UDP bind has been updated
DEBUG: 2024/05/04 11:41:52 Routine: receive incoming v4 - started
DEBUG: 2024/05/04 11:41:52 Routine: receive incoming v6 - started
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - UAPI: Updating persistent keepalive interval
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - UAPI: Updating preshared key
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - UAPI: Updating endpoint
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - UAPI: Adding allowedip
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - UAPI: Adding allowedip
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - Starting
DEBUG: 2024/05/04 11:41:52 Interface state was Down, requested Up, now Up
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - Routine: sequential sender - started
DEBUG: 2024/05/04 11:41:52 peer(fHQZ…56yw) - Routine: sequential receiver - started
panic: listen tcp: lookup localhost on 106.51.156.186:53: no such host
goroutine 71 [running]:
main.main.func2()
/home/runner/work/wireproxy/wireproxy/WireProxy/cmd/wireproxy/main.go:242 +0xae
created by main.main in goroutine 1
/home/runner/work/wireproxy/wireproxy/WireProxy/cmd/wireproxy/main.go:239 +0xb53
Version: wireproxy, version 1.0.9