Skip to content

Commit

Permalink
fix the restip argument
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnybod committed Jun 18, 2023
1 parent 0722f44 commit e46e61a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Fix the restip argument which wasn't being used (@Vinnybod)

## [5.4.2] - 2023-06-07

- Updated Starkiller to v2.3.2
Expand Down
4 changes: 2 additions & 2 deletions empire/server/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def load_starkiller(v2App):
)


def initialize(secure: bool = False, port: int = 1337):
def initialize(secure: bool = False, ip: str = "0.0.0.0", port: int = 1337):
# Not pretty but allows us to use main_menu by delaying the import
from empire.server.api.v2.agent import agent_api, agent_file_api, agent_task_api
from empire.server.api.v2.bypass import bypass_api
Expand Down Expand Up @@ -143,7 +143,7 @@ def shutdown_event():
if not secure:
uvicorn.run(
v2App,
host="0.0.0.0",
host=ip,
port=port,
log_config=None,
lifespan="on",
Expand Down
2 changes: 1 addition & 1 deletion empire/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,6 @@ def run(args):
subprocess.call("./setup/cert.sh")
time.sleep(3)

app.initialize(secure=args.secure_api, port=args.restport)
app.initialize(secure=args.secure_api, ip=args.restip, port=args.restport)

sys.exit()

0 comments on commit e46e61a

Please sign in to comment.