flomesh-io / pipy

Pipy is a programmable proxy for the cloud, edge and IoT.
https://flomesh.io/pipy
Other
771 stars 73 forks source link

Allow listening on Virtual IPs #114

Closed naqvis closed 2 years ago

naqvis commented 2 years ago

Feature Request

Would like to have Pipy support listening on Virtual IP Addresses, so that one can have the ability to start Pipy instance(s) on Virtual IPs and ports like:

.listen('vip1:port')
.listen('vip2:port')
.....
pajama-coder commented 2 years ago

This wasn't possible because Pipy sees vip1:port and vip2:port as the same listener since the port is the same. Only one listener is created in the end.

I've changed that in 83083cf054b55eb51a93d20adb43402eb96e2797 and this usage should be supported now.