IPv6: server accepts IPv4 and IPv6 connections
This commit is contained in:
parent
21d4604578
commit
83d12eca9f
@ -12,6 +12,7 @@ except AttributeError:
|
|||||||
import warnings
|
import warnings
|
||||||
warnings.warn("You must run Syncplay with Python 3.4 or newer!")
|
warnings.warn("You must run Syncplay with Python 3.4 or newer!")
|
||||||
|
|
||||||
|
from twisted.internet.endpoints import TCP6ServerEndpoint
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
|
|
||||||
from syncplay.server import SyncFactory, ConfigurationGetter
|
from syncplay.server import SyncFactory, ConfigurationGetter
|
||||||
@ -19,8 +20,8 @@ from syncplay.server import SyncFactory, ConfigurationGetter
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
argsGetter = ConfigurationGetter()
|
argsGetter = ConfigurationGetter()
|
||||||
args = argsGetter.getConfiguration()
|
args = argsGetter.getConfiguration()
|
||||||
reactor.listenTCP(
|
endpoint = TCP6ServerEndpoint(reactor, int(args.port))
|
||||||
int(args.port),
|
endpoint.listen(
|
||||||
SyncFactory(
|
SyncFactory(
|
||||||
args.port,
|
args.port,
|
||||||
args.password,
|
args.password,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user