Use InetAddress.getCanonicalHostName() instead of getHostName()
This should always return a FQDN.
Loading
Please register or sign in to comment
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This should always return a FQDN.