listen on IPv6
This commit is contained in:
parent
4e6a8d03f6
commit
a117cad720
1 changed files with 3 additions and 2 deletions
|
@ -150,7 +150,8 @@ def main():
|
|||
|
||||
player = get_player(fullscreen=not args.window)
|
||||
|
||||
server = ThreadingUDPServer(('0.0.0.0', args.port), Handler)
|
||||
listen = '::' if ':' in args.peer else ''0.0.0.0''
|
||||
server = ThreadingUDPServer((listen, args.port), Handler)
|
||||
server.allow_reuse_address = True
|
||||
server.player = Player(peer, player, args.playlist, args.prefix)
|
||||
player.register_key_binding('q', server.q_binding)
|
||||
|
|
Loading…
Reference in a new issue