diff options
| author | Haishan <[email protected]> | 2018-12-25 00:01:10 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-12-25 00:01:10 +0800 |
| commit | fe5ff2da4064ca73fa92579d0a941bff8fa2a87b (patch) | |
| tree | 25c40cef55a19446af6ec6d4ab56683a8e3d1739 /src/components | |
| parent | 38e5b480c0ae4af53bf734d65595fbdbf72dd2c1 (diff) | |
| parent | 2b5820a56a5069e07eabb29ff18aa3574d9c2824 (diff) | |
Merge pull request #5 from comzyh/master
use `socks-port` rather than `socket-port` in configs PATCH API
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Config.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Config.js b/src/components/Config.js index e1a7af3..6656ad7 100644 --- a/src/components/Config.js +++ b/src/components/Config.js @@ -99,7 +99,7 @@ function Config({ configs }) { updateConfigs({ [name]: value }); break; case 'redir-port': - case 'socket-port': + case 'socks-port': case 'port': if (target.value !== '') { const num = parseInt(target.value, 10); @@ -117,7 +117,7 @@ function Config({ configs }) { const { name, value } = target; switch (name) { case 'port': - case 'socket-port': + case 'socks-port': case 'redir-port': { const num = parseInt(value, 10); if (num < 0 || num > 65535) return; @@ -144,8 +144,8 @@ function Config({ configs }) { <div> <div className={s0.label}>SOCKS5 Proxy Port</div> <Input - name="socket-port" - value={configState['socket-port']} + name="socks-port" + value={configState['socks-port']} onChange={handleInputOnChange} onBlur={handleInputOnBlur} /> |
