Skip to content

Commit

Permalink
network: ensure custom port main proxy is stopped
Browse files Browse the repository at this point in the history
Stop the main proxy with custom port before attempting to start it.

Follow up #4939.

Signed-off-by: thc202 <thc202@gmail.com>
  • Loading branch information
thc202 committed Sep 27, 2023
1 parent ed26654 commit bdf48d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion addOns/network/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Fixed
- Ensure the main proxy with custom port (`-port`) is stopped when initialising after installation in `cmd` and `daemon` modes.

## [0.11.1] - 2023-09-27
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion addOns/network/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.12.0
version=0.11.2
release=false
zap.maven.publish=true
zap.maven.pom.inceptionyear=2021
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ private void startLocalServers(String overrideAddress, int overridePort, boolean

if (overrides) {
localServersOptions.setMainProxy(serverConfig);
stopLocalServer(mainProxyServer);
}

updateCoreProxy(serverConfig);
Expand Down

0 comments on commit bdf48d5

Please sign in to comment.