Skip to content

Commit

Permalink
server: Allow 0 value to roaManager.AS for library usage
Browse files Browse the repository at this point in the history
  • Loading branch information
a16 authored and fujita committed Nov 22, 2017
1 parent cf94bda commit 667ffe3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/rpki.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 667ffe3

Please sign in to comment.