diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-01-24 23:09:50 -0600 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-01-24 23:59:42 -0600 |
commit | 307582d9d193f282fc20182468a02ed0c55b4f99 (patch) | |
tree | a1624dcf626cb6b984033c331e33b6b418b0eadc /pkg/config | |
parent | 1c9220e04016d035c3c688c315ceabe274f45dfc (diff) |
sip authenticator
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) |