mirror of
https://github.com/luscis/openlan.git
synced 2025-10-29 11:41:46 +08:00
9 lines
187 B
Go
Executable File
9 lines
187 B
Go
Executable File
package network
|
|
|
|
func NewBridger(provider, name string, ifMtu int) Bridger {
|
|
if provider == ProviderVir {
|
|
return NewVirtualBridge(name, ifMtu)
|
|
}
|
|
return NewLinuxBridge(name, ifMtu)
|
|
}
|