update readme

This commit is contained in:
Cyberes 2024-04-12 20:50:06 -06:00
parent d10c84d974
commit 9316c0c1bc
2 changed files with 10 additions and 3 deletions

View File

@ -24,6 +24,16 @@ An example systemd service `loadbalancer.service` is provided.
The server displays stats and info at `/json`
```
=== Proxy Load Balancer ===
Usage of ./proxy-loadbalancer:
--config [string]
Path to the config file
--d, --debug
Enable debug mode
--v Print version and exit
```
## Special Headers
The load balancer accepts special headers to control its behavior.

View File

@ -116,12 +116,9 @@ func removeDuplicates(elements []string) []string {
if encountered[elements[v]] == true {
// Do not add duplicate.
} else {
// Record this element as an encountered element.
encountered[elements[v]] = true
// Append to result slice.
result = append(result, elements[v])
}
}
// Return the new slice.
return result
}