Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua

Home Page:http://www.hammerspoon.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cfal opened this issue · comments

commented

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.