diff options
Diffstat (limited to 'server/bmp.go')
-rw-r--r-- | server/bmp.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/bmp.go b/server/bmp.go index ec2c26ee..e7dc3ea2 100644 --- a/server/bmp.go +++ b/server/bmp.go @@ -221,6 +221,12 @@ func (b *bmpClient) loop() { } } case <-b.dead: + term := bmp.NewBMPTermination([]bmp.BMPTermTLVInterface{ + bmp.NewBMPTermTLV16(bmp.BMP_TERM_TLV_TYPE_REASON, bmp.BMP_TERM_REASON_PERMANENTLY_ADMIN), + }) + if err := write(term); err != nil { + return false + } conn.Close() return true } |