Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions go/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import (

func main() {
socketPath := flag.String("socket", "/tmp/pilot.sock", "daemon socket path")
// NOTE: On Linux, prefer os.UserHomeDir() or XDG_RUNTIME_DIR for the socket
// path (e.g. filepath.Join(os.UserHomeDir(), ".pilot", "daemon.sock")).
// The hardcoded /tmp default is fine for quick testing but may conflict
// with the per-user daemon socket on multi-user systems.
target := flag.String("target", "", "target address (e.g. 0:0000.0000.0002:80)")
message := flag.String("msg", "hello from pilot client", "message to send")
flag.Parse()
Expand Down
4 changes: 4 additions & 0 deletions go/echo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (

func main() {
socketPath := flag.String("socket", "/tmp/pilot.sock", "daemon socket path")
// NOTE: On Linux, prefer os.UserHomeDir() or XDG_RUNTIME_DIR for the socket
// path (e.g. filepath.Join(os.UserHomeDir(), ".pilot", "daemon.sock")).
// The hardcoded /tmp default is fine for quick testing but may conflict
// with the per-user daemon socket on multi-user systems.
port := flag.Uint("port", 7, "pilot port to listen on")
raw := flag.Bool("raw", true, "raw echo (no prefix)")
flag.Parse()
Expand Down
4 changes: 4 additions & 0 deletions go/httpclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import (

func main() {
socketPath := flag.String("socket", "/tmp/pilot.sock", "daemon socket path")
// NOTE: On Linux, prefer os.UserHomeDir() or XDG_RUNTIME_DIR for the socket
// path (e.g. filepath.Join(os.UserHomeDir(), ".pilot", "daemon.sock")).
// The hardcoded /tmp default is fine for quick testing but may conflict
// with the per-user daemon socket on multi-user systems.
target := flag.String("target", "", "target address (e.g. 0:0000.0000.0002)")
port := flag.Uint("port", 80, "target port")
path := flag.String("path", "/status", "HTTP path to request")
Expand Down
4 changes: 4 additions & 0 deletions go/secure/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import (

func main() {
socketPath := flag.String("socket", "/tmp/pilot.sock", "daemon socket path")
// NOTE: On Linux, prefer os.UserHomeDir() or XDG_RUNTIME_DIR for the socket
// path (e.g. filepath.Join(os.UserHomeDir(), ".pilot", "daemon.sock")).
// The hardcoded /tmp default is fine for quick testing but may conflict
// with the per-user daemon socket on multi-user systems.
mode := flag.String("mode", "server", "server or client")
target := flag.String("target", "", "target address for client mode")
msg := flag.String("msg", "hello secure channel", "message to send in client mode")
Expand Down
4 changes: 4 additions & 0 deletions go/webserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import (

func main() {
socketPath := flag.String("socket", "/tmp/pilot.sock", "daemon socket path")
// NOTE: On Linux, prefer os.UserHomeDir() or XDG_RUNTIME_DIR for the socket
// path (e.g. filepath.Join(os.UserHomeDir(), ".pilot", "daemon.sock")).
// The hardcoded /tmp default is fine for quick testing but may conflict
// with the per-user daemon socket on multi-user systems.
port := flag.Uint("port", 80, "pilot port to listen on")
flag.Parse()

Expand Down
Loading