Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hs.socket and hs.socket.udp listens on all interfaces #3634

Open
cfal opened this issue May 11, 2024 · 1 comment
Open

hs.socket and hs.socket.udp listens on all interfaces #3634

cfal opened this issue May 11, 2024 · 1 comment

Comments

@cfal
Copy link

cfal commented May 11, 2024

neither TCP or UDP server sockets allow binding to a specific interface or address, eg https://github.com/Hammerspoon/hammerspoon/blob/master/extensions/socket/libsocket_udp.m#L209

it would be nice to support listening on a specific interface, eg communication on a bridge interface with a VM without exposing the server to the outside world.

@cmsj
Copy link
Member

cmsj commented Aug 5, 2024

CocoaAsyncSocket supports binding to either interface or address, and I agree we should do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants