forked from Firepup650/python-talk
Small change to get the system hostname instead
This commit is contained in:
parent
baaa9e811e
commit
e22e81162a
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import os, sys, asyncio, re, signal
|
import os, sys, asyncio, re, signal
|
||||||
|
from platform import uname
|
||||||
from traceback import format_exc
|
from traceback import format_exc
|
||||||
from firepup650 import console
|
from firepup650 import console
|
||||||
from logs import log
|
from logs import log
|
||||||
|
@ -14,7 +15,7 @@ G.servers = {}
|
||||||
G.clientsConnected = []
|
G.clientsConnected = []
|
||||||
port = 65048
|
port = 65048
|
||||||
G.msgs = []
|
G.msgs = []
|
||||||
G.remoteID = "pyTalkServ"
|
G.remoteID = uname().node
|
||||||
G.event = asyncio.Event()
|
G.event = asyncio.Event()
|
||||||
G.loop = asyncio.get_event_loop()
|
G.loop = asyncio.get_event_loop()
|
||||||
G.interruptCount = 0
|
G.interruptCount = 0
|
||||||
|
|
Loading…
Reference in a new issue