diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2017-11-22 15:36:01 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-11-22 16:22:35 +0900 |
commit | 667ffe3995bf0baa986b46129322c82c500a4419 (patch) | |
tree | 780eb813793efe05c5e793aab91dd0bc821c71f1 /server/rpki.go | |
parent | cf94bda92978911d197b4fe2b33751475e446e60 (diff) |
server: Allow 0 value to roaManager.AS for library usage
Diffstat (limited to 'server/rpki.go')
-rw-r--r-- | server/rpki.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/rpki.go b/server/rpki.go index 008b7d1f..b6aec254 100644 --- a/server/rpki.go +++ b/server/rpki.go @@ -120,9 +120,6 @@ func (m *roaManager) SetAS(as uint32) error { } func (m *roaManager) AddServer(host string, lifetime int64) error { - if m.AS == 0 { - return fmt.Errorf("AS isn't configured yet") - } address, port, err := net.SplitHostPort(host) if err != nil { return err |