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

4
stage1/cmd/server/build.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
go build
sudo setcap cap_net_admin+iep server

14
stage1/cmd/server/main.go Normal file
View File

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