WIP: Simple working client/server

This commit is contained in:
jdl
2024-12-16 20:51:30 +01:00
parent b4a6149cee
commit 62bf956c10
44 changed files with 1841 additions and 0 deletions

5
node/cmd/client/build.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
go build
sudo setcap cap_net_admin+iep ./client
./client 144.76.78.93

15
node/cmd/client/main.go Normal file
View File

@@ -0,0 +1,15 @@
package main
import (
"log"
"os"
"vppn/node"
)
func main() {
if len(os.Args) != 2 {
log.Fatalf("Usage: %s <addr:port>", os.Args[0])
}
n := node.NewTmpNodeClient()
n.RunClient(os.Args[1])
}