Initial implementation of source caching
Yet untested.
This commit is contained in:
parent
a72b0f7ae5
commit
e86d03dca2
10 changed files with 84 additions and 83 deletions
|
|
@ -47,7 +47,7 @@ func (device *Device) RoutineTUNEventReader() {
|
|||
if !device.tun.isUp.Get() {
|
||||
logInfo.Println("Interface set up")
|
||||
device.tun.isUp.Set(true)
|
||||
updateUDPConn(device)
|
||||
UpdateUDPListener(device)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ func (device *Device) RoutineTUNEventReader() {
|
|||
if device.tun.isUp.Get() {
|
||||
logInfo.Println("Interface set down")
|
||||
device.tun.isUp.Set(false)
|
||||
closeUDPConn(device)
|
||||
CloseUDPListener(device)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue