Skip to content

Commit

Permalink
Fix: only over-write http_port when cli arg is passed (#489)
Browse files Browse the repository at this point in the history
* Only over-ride http_port when cli arg is passed

* Update CHANGELOG
  • Loading branch information
sandreae committed Aug 7, 2023
1 parent d5ba55d commit 2d77668
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Do nothing on log insertion conflict [#468](https://github.com/p2panda/aquadoggo/pull/468)
- Don't update or announce an update in schema provider if a schema with this id exists already [#472](https://github.com/p2panda/aquadoggo/pull/472)
- Do nothing on document_view insertion conflicts [#474](https://github.com/p2panda/aquadoggo/pull/474)
- Only over-write `http_port` when cli arg is passed [#489](https://github.com/p2panda/aquadoggo/pull/489)

### Open Sauce

Expand Down
4 changes: 3 additions & 1 deletion aquadoggo_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ impl TryFrom<Cli> for Configuration {
None
};

config.http_port = cli.http_port.unwrap_or(2020);
if let Some(http_port) = cli.http_port {
config.http_port = http_port
}

config.network = NetworkConfiguration {
autonat: cli.autonat.unwrap_or(false),
Expand Down

0 comments on commit 2d77668

Please sign in to comment.