git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #426 from bluecmd/patch-4

Remove check for >0 upstreams

commit11bdcc96c545aedac877001391cc704d18dbfdee authorJehiah Czebotar <jehiah@gmail.com> dateMon 28 Aug 2017, 20:45 (9 years ago) parent79fff530b11713
2 files changed−4
options.go−3 options_test.go−1
options.go−3
@@ -121,9 +121,6 @@ func parseURL(to_parse string, urltype string, msgs []string) (*url.URL, []strin
121121
122122func (o *Options) Validate() error {
123123 msgs := make([]string, 0)
124− if len(o.Upstreams) < 1 {
125− msgs = append(msgs, "missing setting: upstream")
126− }
127124 if o.CookieSecret == "" {
128125 msgs = append(msgs, "missing setting: cookie-secret")
129126 }
options_test.go−1
@@ -35,7 +35,6 @@ func TestNewOptions(t *testing.T) {
3535 assert.NotEqual(t, nil, err)
3636
3737 expected := errorMsg([]string{
38− "missing setting: upstream",
3938 "missing setting: cookie-secret",
4039 "missing setting: client-id",
4140 "missing setting: client-secret"})