Swap so Server is the AMP-client and Portal the AMP-server
This commit is contained in:
parent
3971a08412
commit
82fd9ff698
3 changed files with 26 additions and 37 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue