flomesh-io / pipy

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

Allow listening on Virtual IPs #114

Closed naqvis closed 1 year ago

naqvis commented 1 year 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 1 year 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.