Fix panic

This commit is contained in:
Asim Aslam 2019-08-08 12:45:37 +01:00
parent c7e8a2aeb9
commit 11795071fb

View File

@ -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