Skip to content

Commit

Permalink
number of connections
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfly722 committed Sep 2, 2024
1 parent 711d555 commit 78ec00f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cloak-wg-helper/config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
var params = {
fakehost: '',
fakeport: ''
cloakEncryptionMethod: '',
cloakNumberOfConnections: ''
}

function fill(){
for (let key in params) {
params[key]=document.getElementById(key).value
element=document.getElementById(key)
if (element) {
params[key]=element.value
}
}
}

Expand Down Expand Up @@ -40,11 +44,11 @@ sudo tee /etc/cloak/cloak-client.json << EOF
{
"Transport": "direct",
"ProxyMethod": "wireguard",
"EncryptionMethod": "aes-128-gcm",
"EncryptionMethod": ":cloakEncryptionMethod",
"UID": "$ck_uid",
"PublicKey": "$ck_publicKey",
"ServerName": ":fakehost",
"NumConn": 30,
"NumConn": :cloakNumberOfConnections,
"KeepAlive": 0,
"BrowserSig": "chrome",
"StreamTimeout": 300
Expand Down
Binary file modified cloak-wg-helper/index.html
Binary file not shown.

0 comments on commit 78ec00f

Please sign in to comment.