Add config to run Agent in Lite mode

Allow the agent to run in Lite mode. This is useful in
cases where you never want connectivity checks, and reduces
possible attacks surfaces when you have a public IP.
This commit is contained in:
Sebastian Waisbrot
2019-08-28 17:01:43 -03:00
committed by Sean DuBois
parent 45cb33ebe6
commit 953f36f07f
7 changed files with 161 additions and 32 deletions

View File

@@ -57,4 +57,11 @@ var (
// ErrAddressParseFailed indicates we were unable to parse a candidate address
ErrAddressParseFailed = errors.New("failed to parse address")
// ErrLiteUsingNonHostCandidates indicates non host candidates were selected for a lite agent
ErrLiteUsingNonHostCandidates = errors.New("lite agents must only use host candidates")
// ErrUselessUrlsProvided indicates that one or more URL was provided to the agent but no host
// candidate required them
ErrUselessUrlsProvided = errors.New("agent does not need URL with selected candidate types")
)