mirror of
https://github.com/k4yt3x/wg-meshconf.git
synced 2024-11-21 23:23:18 +01:00
formatted file and corrected file metadata
This commit is contained in:
parent
559a51393b
commit
00abe34613
37
database.json
Normal file
37
database.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"peers": {
|
||||
"tokyo1": {
|
||||
"PrivateKey": "qIM4Y95hEjZwKRnXs182gHUzJaNXvS5ypNztnvvau10=",
|
||||
"Address": [
|
||||
"10.1.0.1/16"
|
||||
],
|
||||
"ListenPort": 51820,
|
||||
"Endpoint": "tokyo1.com",
|
||||
"PersistentKeepalive": "25"
|
||||
},
|
||||
"germany1": {
|
||||
"PrivateKey": "8K2qSU4cN6nN+1SR3K17T8hDLIQSKSgQvfwE3cormFQ=",
|
||||
"Address": [
|
||||
"10.2.0.1/16"
|
||||
],
|
||||
"ListenPort": 51820,
|
||||
"Endpoint": "germany1.com"
|
||||
},
|
||||
"canada11": {
|
||||
"PrivateKey": "2H2ASu9ZM5jG3pPdG4lW3e67PTc6VfRl4t5a8ddQ4Ug=",
|
||||
"Address": [
|
||||
"10.3.0.1/16"
|
||||
],
|
||||
"ListenPort": 51820,
|
||||
"Endpoint": "canada1.com"
|
||||
},
|
||||
"shanghai1": {
|
||||
"PrivateKey": "oCsLP1KTIUWPKWnHluvyQW1YkpWgaO0Gz3iTDItUKV8=",
|
||||
"Address": [
|
||||
"10.3.0.1/16"
|
||||
],
|
||||
"ListenPort": 51820,
|
||||
"Endpoint": "shanghai1.com"
|
||||
}
|
||||
}
|
||||
}
|
@ -4,7 +4,7 @@
|
||||
Name: Database Manager
|
||||
Creator: K4YT3X
|
||||
Date Created: July 19, 2020
|
||||
Last Modified: January 12, 2021
|
||||
Last Modified: May 21, 2021
|
||||
"""
|
||||
|
||||
# built-in imports
|
||||
|
@ -52,7 +52,9 @@ def parse_arguments():
|
||||
)
|
||||
addpeer.add_argument("--privatekey", help="private key of server interface")
|
||||
addpeer.add_argument("--listenport", help="port to listen on", default=51820)
|
||||
addpeer.add_argument("--persistentkeepalive", help="set persistent keepalive interval")
|
||||
addpeer.add_argument(
|
||||
"--persistentkeepalive", help="set persistent keepalive interval"
|
||||
)
|
||||
addpeer.add_argument("--fwmark", help="fwmark for outgoing packets")
|
||||
addpeer.add_argument("--dns", help="server interface DNS servers")
|
||||
addpeer.add_argument("--mtu", help="server interface MTU")
|
||||
@ -78,7 +80,9 @@ def parse_arguments():
|
||||
)
|
||||
updatepeer.add_argument("--privatekey", help="private key of server interface")
|
||||
updatepeer.add_argument("--listenport", help="port to listen on")
|
||||
updatepeer.add_argument("--persistentkeepalive", help="set persistent keepalive interval")
|
||||
updatepeer.add_argument(
|
||||
"--persistentkeepalive", help="set persistent keepalive interval"
|
||||
)
|
||||
updatepeer.add_argument("--fwmark", help="fwmark for outgoing packets")
|
||||
updatepeer.add_argument("--dns", help="server interface DNS servers")
|
||||
updatepeer.add_argument("--mtu", help="server interface MTU")
|
||||
|
Loading…
Reference in New Issue
Block a user