summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEiichiro Watanabe <a16tochjp@gmail.com>2017-11-22 15:36:01 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-22 16:22:35 +0900
commit667ffe3995bf0baa986b46129322c82c500a4419 (patch)
tree780eb813793efe05c5e793aab91dd0bc821c71f1
parentcf94bda92978911d197b4fe2b33751475e446e60 (diff)
server: Allow 0 value to roaManager.AS for library usage
-rw-r--r--server/rpki.go3
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