Swap so Server is the AMP-client and Portal the AMP-server

This commit is contained in:
Griatch 2018-01-11 22:09:01 +01:00
parent 3971a08412
commit 82fd9ff698
3 changed files with 26 additions and 37 deletions

View file

@ -550,9 +550,9 @@ if AMP_ENABLED:
from evennia.server import amp
factory = amp.AmpServerFactory(EVENNIA)
amp_service = internet.TCPServer(AMP_PORT, factory, interface=AMP_INTERFACE)
amp_service.setName("EvenniaPortal")
factory = amp.AmpClientFactory(EVENNIA)
amp_service = internet.TCPClient(AMP_HOST, AMP_PORT, factory)
amp_service.setName('ServerAMPClient')
EVENNIA.services.addService(amp_service)
if WEBSERVER_ENABLED: