From 667ffe3995bf0baa986b46129322c82c500a4419 Mon Sep 17 00:00:00 2001 From: Eiichiro Watanabe Date: Wed, 22 Nov 2017 15:36:01 +0900 Subject: server: Allow 0 value to roaManager.AS for library usage --- server/rpki.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'server/rpki.go') 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 -- cgit v1.2.3