update readme
This commit is contained in:
parent
d10c84d974
commit
9316c0c1bc
10
README.md
10
README.md
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue