From 11795071fb8f78a268522a90691887d679685f53 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 8 Aug 2019 12:45:37 +0100 Subject: [PATCH] Fix panic --- tunnel/default.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tunnel/default.go b/tunnel/default.go index 7d2d3984..12468f74 100644 --- a/tunnel/default.go +++ b/tunnel/default.go @@ -116,6 +116,10 @@ func (t *tun) process() { Body: msg.data.Body, } + if nmsg.Header == nil { + nmsg.Header = make(map[string]string) + } + // set the tunnel id on the outgoing message nmsg.Header["Micro-Tunnel-Id"] = msg.id