fix: read gateway port from config instead of hardcoded 18789#53
Open
ktjysu wants to merge 2 commits into
Open
fix: read gateway port from config instead of hardcoded 18789#53ktjysu wants to merge 2 commits into
ktjysu wants to merge 2 commits into
Conversation
ktjysu
commented
Mar 28, 2026
- Add get_gateway_port() function to read gateway.port from openclaw.json
- Replace hardcoded port 18789 with dynamic port in:
- shell.rs: spawn_openclaw_gateway()
- service.rs: service status/start/stop
- config.rs: get_dashboard_url()
- process.rs: check_port_in_use()
- diagnostics.rs: security checks Closes openclaw服务端口写死了,我是用的别的端口,它没识别出来 #51
- Add get_gateway_port() function to read gateway.port from openclaw.json - Replace hardcoded port 18789 with dynamic port in: - shell.rs: spawn_openclaw_gateway() - service.rs: service status/start/stop - config.rs: get_dashboard_url() - process.rs: check_port_in_use() - diagnostics.rs: security checks Closes miaoxworld#51
- Add regex to extract version number from full output (format: 202X.XX.XX) - Support various output formats: "OpenClaw 2026.3.24 (cff6dc9)", "2026.3.24", "v2026.3.24" - Fix version comparison logic when versions are identical but full output differs - Add regex dependency
f302e9b to
140f5e1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.