diff --git a/README.md b/README.md index d77f563..d4c1e74 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,22 @@ go run main.go ## Configuration -Server connection settings can be modified in `types/types.go`: -```go -const ( - ServerAddr = "boner.be:6969" // Change this to connect to a different server or localhost if you want to run the server locally for development -) +Server connection can be configured using command-line flags: + +```bash +# Connect to default server (boner.be:6969) +go run main.go + +# Connect to local server +go run main.go -local + +# Connect to specific server +go run main.go -addr somehost # Uses somehost:6969 +go run main.go -addr somehost:6970 # Uses somehost:6970 ``` +Note: The `-local` flag is a shorthand for `-addr localhost:6969` and cannot be used together with `-addr`. + ## Development The project uses Protocol Buffers for network communication. If you modify the `.proto` files, regenerate the Go code with: