support https and wss scheme
This commit is contained in:
parent
0c9dbbf9e2
commit
0bdfec10e4
|
@ -88,6 +88,10 @@
|
|||
"Minutes": "分",
|
||||
"Seconds": "秒",
|
||||
"Milliseconds": "毫秒",
|
||||
"Http": "Http",
|
||||
"Https": "Https",
|
||||
"WebSocket": "WebSocket",
|
||||
"WebSocket (Security)": "WebSocket (安全)",
|
||||
"Disabled": "禁用",
|
||||
"Changes to the settings take effect after refreshing page.": "设置将在页面刷新后生效.",
|
||||
"Type is illegal!": "类型错误!",
|
||||
|
|
|
@ -92,6 +92,10 @@
|
|||
'Minutes': 'Minutes',
|
||||
'Seconds': 'Seconds',
|
||||
'Milliseconds': 'Milliseconds',
|
||||
'Http': 'Http',
|
||||
'Https': 'Https',
|
||||
'WebSocket': 'WebSocket',
|
||||
'WebSocket (Security)': 'WebSocket (Security)',
|
||||
'Disabled': 'Disabled',
|
||||
'Changes to the settings take effect after refreshing page.': 'Changes to the settings take effect after refreshing page.',
|
||||
'Type is illegal!': 'Type is illegal!',
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
context.requestBody.params = finalParams;
|
||||
}
|
||||
|
||||
if (protocol == 'ws') {
|
||||
if (protocol == 'ws' || protocol == 'wss') {
|
||||
return aria2WebSocketRpcService.request(context);
|
||||
} else {
|
||||
return aria2HttpRpcService.request(context);
|
||||
|
|
|
@ -42,7 +42,9 @@
|
|||
<div class="setting-value col-sm-8">
|
||||
<select class="form-control" style="width: 100%;" ng-model="settings.protocol" ng-change="settingService.setProtocol(settings.protocol)">
|
||||
<option value="http" translate>Http</option>
|
||||
<option value="https" translate>Https</option>
|
||||
<option value="ws" translate>WebSocket</option>
|
||||
<option value="wss" translate>WebSocket (Security)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue