Skip to content

Commit

Permalink
Removed commented out private key and surrounding code
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Dec 9, 2024
1 parent 056d69a commit f1d63e4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
23 changes: 23 additions & 0 deletions D:\jjsahdd/server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Address": [
"10.0.0.1/24"
],
"ListenPort": 51820,
"PrivateKey": "6O38xfKg6Jo4x4nm9KMwK/NYZNYjNIi+Lx28VqZAzlw=",
"PublicKey": "u3b+DCYWlT+4u8LHw0w0P1Jd3NOPMAvwDpZzO17HfnE=",
"Endpoint": "ip_addr",
"PersistentKeepalive": 16,
"DNS": [
"1.1.1.1"
],
"AllowedIPs": [
"0.0.0.0/0",
"::/0"
],
"PreUp": "echo WireGuard PreUp",
"PostUp": "iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE",
"PreDown": "echo WireGuard PreDown",
"PostDown": "iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE",
"CreatedAt": 464703000,
"UpdatedAt": 464703000
}
10 changes: 10 additions & 0 deletions D:\jjsahdd/wg0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Updated: 464703000 / Created: 464703000
[Interface]
Address = 10.0.0.1/24
ListenPort = 51820
PrivateKey = 6O38xfKg6Jo4x4nm9KMwK/NYZNYjNIi+Lx28VqZAzlw=

PreUp = echo WireGuard PreUp
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PreDown = echo WireGuard PreDown
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
3 changes: 0 additions & 3 deletions blockchain/solana/soon/setdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ func SoonNodeCreation(data NodeDetails) {
//
projectDir := "blockchain/solana/soon/."

// // Your private key in base58 format (replace with your actual private key)
// privateKey := "kRVZ7yFvAZFufaUJheFecbp8gESdEFB6hzwRXzzdJGZdnH6hTvdhhZf65bCfG2fAyb9AxFuw3JTvXDPUPXwA5rG"

// Set environment variable to pass to JS file
os.Setenv("SOLANA_PRIVATE_KEY", data.PrivateKey)

Expand Down

0 comments on commit f1d63e4

Please sign in to comment.