mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-11-30 08:28:01 +00:00
11 lines
261 B
Go
11 lines
261 B
Go
package trace
|
|
|
|
import "github.com/nxtrace/NTrace-core/trace/internal"
|
|
|
|
func applyICMPSourceDevice(spec *internal.ICMPSpec, osType int, sourceDevice string) {
|
|
if spec == nil || sourceDevice == "" || osType == 2 {
|
|
return
|
|
}
|
|
spec.SourceDevice = sourceDevice
|
|
}
|