mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-09-06 19:51:15 +00:00
Update both Chinese languague
This commit is contained in:
@@ -67,7 +67,7 @@ export default {
|
||||
</h6>
|
||||
<div class="mb-1">
|
||||
<small class="text-muted">
|
||||
Public Key
|
||||
<LocaleText t="Public Key"></LocaleText>
|
||||
</small>
|
||||
<small class="d-block">
|
||||
<samp>{{Peer.id}}</samp>
|
||||
|
@@ -29,7 +29,7 @@ export default {
|
||||
this.store.Configuration.Server.dashboard_language = lang_id;
|
||||
this.store.Locale = res.data
|
||||
}else{
|
||||
this.store.newMessage("Server", "Dashboard language update failed", "danger")
|
||||
this.store.newMessage("Server", "WGDashboard language update failed", "danger")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@@ -1,17 +0,0 @@
|
||||
import subprocess
|
||||
|
||||
|
||||
def _generateKeyPairs(amount: int) -> list[list[str]] | None:
|
||||
try:
|
||||
pairs = subprocess.check_output(
|
||||
f'''for ((i = 0 ; i<{amount} ; i++ ));do privateKey=$(wg genkey) presharedKey=$(wg genkey) publicKey=$(wg pubkey <<< "$privateKey") echo "$privateKey,$publicKey,$presharedKey"; done''', shell=True, stderr=subprocess.STDOUT
|
||||
)
|
||||
pairs = pairs.decode().split("\n")
|
||||
print(pairs)
|
||||
return [x.split(",") for x in pairs]
|
||||
except subprocess.CalledProcessError as exp:
|
||||
print(str(exp))
|
||||
return []
|
||||
|
||||
|
||||
_generateKeyPairs(20)
|
Reference in New Issue
Block a user