Bug 242662

Summary: sysutils/ttyd: option -i to loopback does not take effect
Product: Ports & Packages Reporter: Nils Johannsen <nilsjohannsen>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Some People CC: lwhsu
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Nils Johannsen 2019-12-16 12:33:42 UTC
ttyd (1.5.2) offers the option -i, --interface to define a network interface to bind.
In case 'ttyd login' without the option '-i' is called, 'sockstat -s4' shows the local address '*:7681' so that the socket listens to all interfaces.
In case 'ttyd -i em0 login' is called, sockstat shows the address '192.168.1.144:7681' as expected, so that the socket listens only to that specific interface.
In case 'ttyd -i lo0 login' is called, sockstat shows the address '*:7681' and the socket listens to all interfaces. But in this case I would expect the address '127.0.0.1:7681' and that the socket only listens on the local loopback adapter.
Comment 1 Li-Wen Hsu freebsd_committer 2020-06-16 11:30:49 UTC
Maintainer has been reset.