mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Workaround possible GraalVM issue
This commit is contained in:
parent
1cc21834e2
commit
7a42737287
1 changed files with 2 additions and 2 deletions
|
@ -121,13 +121,13 @@ public class IOUtils {
|
||||||
return socketAddress;
|
return socketAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static UnixDomainPrincipal getUnixDomainPrincipal(final SocketChannel channel) throws IOException {
|
public static String getUnixDomainPrincipal(final SocketChannel channel) throws IOException {
|
||||||
UnixDomainPrincipal principal = null;
|
UnixDomainPrincipal principal = null;
|
||||||
try {
|
try {
|
||||||
principal = channel.getOption(ExtendedSocketOptions.SO_PEERCRED);
|
principal = channel.getOption(ExtendedSocketOptions.SO_PEERCRED);
|
||||||
} catch (UnsupportedOperationException | NoClassDefFoundError ignored) {
|
} catch (UnsupportedOperationException | NoClassDefFoundError ignored) {
|
||||||
}
|
}
|
||||||
return principal;
|
return principal == null ? null : principal.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ServerSocketChannel bindSocket(final SocketAddress address) throws IOErrorException {
|
public static ServerSocketChannel bindSocket(final SocketAddress address) throws IOErrorException {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue