pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.04k stars 2.11k forks source link

SetSourceIP Error #4538

Open rgzntrade opened 2 months ago

rgzntrade commented 2 months ago

Describe the bug ❯ ./build/linux-debug/bin/SetSourceIP --sourceip 192.168.88.129 https://192.168.88.128:8443/api Using source IP address source IP address : 192.168.88.128:0

Host: 192.168.88.128 Port: 8443 Path: /api Exception: name (Invalid access) message [Cannot bind() a SecureStreamSocketImpl]

To Reproduce ./build/linux-debug/bin/SetSourceIP --sourceip 192.168.88.129 https://192.168.88.128:8443/api

Expected behavior sourceip from 192.168.88.129

Please add relevant environment information:

Additional context changed to this void SecureStreamSocketImpl::bind(const SocketAddress& address, bool reuseAddress) { _impl.bind(address, reuseAddress, false); // throw Poco::InvalidAccessException("Cannot bind() a SecureStreamSocketImpl"); } no Exception, sourceip from 192.168.88.129。Will there be any potential bugs?