From c45f8ff530e4b93ced494338ed16ddf15f23f983 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 30 Jan 2025 12:57:31 +0100 Subject: [PATCH] fix port and ip --- idhub/management/commands/open_service.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/idhub/management/commands/open_service.py b/idhub/management/commands/open_service.py index dd15c5c..8b1e112 100644 --- a/idhub/management/commands/open_service.py +++ b/idhub/management/commands/open_service.py @@ -16,14 +16,16 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('key', nargs='?', default='', type=str, help='key') + parser.add_argument('ip_port', nargs='?', default='', type=str, help='ip_port') def handle(self, *args, **kwargs): self._key = kwargs["key"] + self.p_port = kwargs["ip_port"] cache.set("KEY_DIDS", self._key, None) if not DID.objects.exists(): cache.set("KEY_DIDS", self._key, None) - call_command('runserver') + call_command('runserver', self.ip_port) return did = DID.objects.first() @@ -37,4 +39,4 @@ class Command(BaseCommand): return cache.set("KEY_DIDS", self._key, None) - call_command('runserver') + call_command('runserver', self.ip_port)