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