mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
work-in-progress adding nodeinfo
This commit is contained in:
parent
2c7b22db92
commit
2e45e970c6
4 changed files with 211 additions and 9 deletions
|
@ -74,6 +74,9 @@ func (tun *TunAdapter) write() {
|
|||
switch bs[0] {
|
||||
case typeSessionTraffic:
|
||||
// This is what we want to handle here
|
||||
if !tun.isEnabled {
|
||||
continue // Drop traffic if the tun is disabled
|
||||
}
|
||||
default:
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue