mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
create inet socket with wildcard address
This commit is contained in:
parent
6bdfa11b66
commit
e8248d1b2b
1 changed files with 3 additions and 1 deletions
|
@ -107,7 +107,9 @@ public class IOUtils {
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
throw new UserErrorException("Invalid tcp bind address: " + tcpAddress, e);
|
throw new UserErrorException("Invalid tcp bind address: " + tcpAddress, e);
|
||||||
}
|
}
|
||||||
return new InetSocketAddress(host, port);
|
return "*".equals(host)
|
||||||
|
? new InetSocketAddress(port)
|
||||||
|
: new InetSocketAddress(host, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static UnixDomainPrincipal getUnixDomainPrincipal(final SocketChannel channel) throws IOException {
|
public static UnixDomainPrincipal getUnixDomainPrincipal(final SocketChannel channel) throws IOException {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue