Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Forwarding Config check #163

Merged
merged 1 commit into from
Dec 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ func (r *Config) isValid() error {
if r.ForwardingPassword == "" {
return errors.New("no forwarding password")
}
if r.TLSCertificate != "" {
return errors.New("you don't need to specify a tls-certificate, use tls-ca-certificate instead")
}
if r.TLSPrivateKey != "" {
return errors.New("you don't need to specify the tls-private-key, use tls-ca-key instead")
}
} else {
if r.Upstream == "" {
return errors.New("you have not specified an upstream endpoint to proxy to")
Expand Down