forked from openlp/openlp
replaced constant value with enum
This commit is contained in:
parent
86c37481ab
commit
e584907718
@ -227,7 +227,7 @@ class RemoteTab(SettingsTab):
|
|||||||
continue
|
continue
|
||||||
for address in interface.addressEntries():
|
for address in interface.addressEntries():
|
||||||
ip = address.ip()
|
ip = address.ip()
|
||||||
if ip.protocol() == 0 and ip != QtNetwork.QHostAddress.LocalHost:
|
if ip.protocol() == QtNetwork.QAbstractSocket.IPv4Protocol and ip != QtNetwork.QHostAddress.LocalHost:
|
||||||
return ip.toString()
|
return ip.toString()
|
||||||
return ip_address
|
return ip_address
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user