From 307582d9d193f282fc20182468a02ed0c55b4f99 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 24 Jan 2020 23:09:50 -0600 Subject: sip authenticator --- pkg/config/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/config') diff --git a/pkg/config/main.go b/pkg/config/main.go index 142738d..cfa97ed 100644 --- a/pkg/config/main.go +++ b/pkg/config/main.go @@ -19,6 +19,8 @@ type Opts struct { Auth string } +// TODO -- remove use of reflect + func (o *Opts) fallbackToEnv(field string, envVar string, defaultVal string) { r := reflect.ValueOf(o) f := reflect.Indirect(r).FieldByName(field) -- cgit v1.2.3