fix panic in net diag
Merge pull request #481 from jbenet/fix/diag

fix panic in net diag