Commit d82e3355 authored by nextime's avatar nextime

Fix: Correct config parameter name from 'jhost' to 'host' in wssshd.conf

- Fixed wssshd.py to use 'host' instead of 'jhost' in config file
- Updated wssshd.conf.example to use correct parameter name
- Updated all documentation to reflect 'host' parameter
- Maintains consistency with command line --host argument
parent 8feb3370
......@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- **wssshd Configuration File Support**: Added INI-formatted config file `/etc/wssshd.conf` for wssshd daemon
- Default jhost, port, password, domain, web-port, web-host, and web-https settings
- Default host, port, password, domain, web-port, web-host, and web-https settings
- Command line arguments take precedence over config file values
- System-wide configuration for server deployment
- **Enhanced wssshd Deployment**: wssshd now supports config file for easier system integration
......
......@@ -224,7 +224,7 @@ wssshd supports a system-wide INI-formatted configuration file at `/etc/wssshd.c
```ini
[wssshd]
jhost = 0.0.0.0
host = 0.0.0.0
port = 9898
password = mysecret
domain = example.com
......@@ -234,7 +234,7 @@ web-https = false
```
**Configuration Options:**
- `jhost`: Default WebSocket server bind address
- `host`: Default WebSocket server bind address
- `port`: Default WebSocket server port
- `password`: Default registration password
- `domain`: Default domain suffix for hostname parsing
......
......@@ -208,7 +208,7 @@ wssshd supports a system-wide configuration file at `/etc/wssshd.conf`:
```ini
[wssshd]
jhost = 0.0.0.0
host = 0.0.0.0
port = 9898
password = mysecret
domain = example.com
......
[wssshd]
jhost = 0.0.0.0
host = 0.0.0.0
port = 9898
password = mysecret
domain = example.com
......
......@@ -476,8 +476,8 @@ async def main():
for key in ['password', 'domain']:
if key in section:
defaults[key] = section[key]
if 'jhost' in section: # Map jhost to host
defaults['host'] = section['jhost']
if 'host' in section:
defaults['host'] = section['host']
if 'port' in section:
defaults['port'] = int(section['port'])
if 'web-host' in section:
......
......@@ -2,7 +2,7 @@ wsssh-tools (1.3.2-1) unstable; urgency=medium
* Version 1.3.2: Added configuration file support to wssshd
* Added system-wide config file /etc/wssshd.conf for wssshd daemon
* Default jhost, port, password, domain, web-port, web-host, web-https settings
* Default host, port, password, domain, web-port, web-host, web-https settings
* Command line arguments take precedence over config file values
* Improved server deployment and configuration management
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment