mirror of
https://github.com/0x1d/rcond.git
synced 2025-12-16 10:54:29 +01:00
docs: add environment variables and improve descriptions
This commit is contained in:
@@ -21,7 +21,10 @@ func usage() {
|
||||
|
||||
func main() {
|
||||
|
||||
addr := "0.0.0.0:8080"
|
||||
addr := os.Getenv("RCOND_ADDR")
|
||||
if addr == "" {
|
||||
addr = "0.0.0.0:8080"
|
||||
}
|
||||
if len(os.Args) > 1 {
|
||||
addr = os.Args[1]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user