fixing port conflicts

This commit is contained in:
n0mad1k
2025-05-13 23:01:26 -04:00
parent 938ddb93a1
commit 5fbdab4971
15 changed files with 65 additions and 25 deletions
+1 -2
View File
@@ -14,8 +14,7 @@
instance_type: "{{ aws_instance_type | default('t2.micro') }}"
deployment_id: "{{ deployment_id | default('') }}"
redirector_name: "{{ redirector_name | default('r-' + deployment_id) }}"
# Calculate effective port: use shell_handler_port from vars or default to 8083
effective_listen_port: "{{ shell_handler_port | default(8083) }}"
effective_listen_port: "{{ shell_handler_port | default(4488) }}"
# Check for shared infrastructure
# Only use shared when C2 and redirector are in the same region
use_shared_infra: "{{ not (c2_region is defined and redirector_region is defined and c2_region != redirector_region) and not c2_only | default(false) | bool and not redirector_only | default(false) | bool }}"