Skip to content

Commit 00f6bea

Browse files
committed
CHANGES:
- Olympus: WSPort is mandatory now (default: 4000)
1 parent 2fb15c6 commit 00f6bea

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

extensions/olympus/extension.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ async def prepare_olympus_json(self) -> bool:
207207
if extension:
208208
self.locals['audio'] = {
209209
"SRSPort": extension.config.get('port', extension.locals['Server Settings']['SERVER_PORT'])
210-
} | self.config.get('audio', {})
210+
} | self.config.get('audio', {
211+
"WSPort": 4000
212+
})
211213
with open(self.config_path, mode='w', encoding='utf-8') as cfg:
212214
json.dump(self.locals, cfg, indent=2)
213215
return True

extensions/olympus/schemas/olympus_schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ schema;instance_olympus_schema:
8686
nullable: false
8787
mapping:
8888
SRSPort: {type: int, nullable: false, func: unique_port}
89-
WSPort: {type: int, nullable: false, func: unique_port}
89+
WSPort: {required: true, type: int, nullable: false, func: unique_port}
9090
WSEndpoint: {type: str, nullable: false, range: {min: 1}}

0 commit comments

Comments
 (0)