Fixes to getServerIPv6()
This commit is contained in:
@@ -28,10 +28,11 @@ async function getServerIPv4() {
|
||||
return await api(config.provider).getServerIPv4(config);
|
||||
}
|
||||
|
||||
// returns RFC 5952 formatted address (https://datatracker.ietf.org/doc/html/rfc5952)
|
||||
async function getServerIPv6() {
|
||||
const config = await settings.getSysinfoConfig();
|
||||
|
||||
return await api(config.provider).getServerIPv4(config);
|
||||
return await api(config.provider).getServerIPv6(config);
|
||||
}
|
||||
|
||||
function hasIPv6() {
|
||||
|
||||
Reference in New Issue
Block a user