mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
internal: record correct interfaces for queries from router on Firewalla
This commit is contained in:
committed by
Cuong Manh Le
parent
12c8ab696f
commit
59dc74ffbb
@@ -188,6 +188,16 @@ func ServiceDependencies() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
// SelfInterfaces return list of *net.Interface that will be source of requests from router itself.
|
||||
func SelfInterfaces() []*net.Interface {
|
||||
switch Name() {
|
||||
case firewalla.Name:
|
||||
return dnsmasq.FirewallaSelfInterfaces()
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func distroName() string {
|
||||
switch {
|
||||
case bytes.HasPrefix(unameO(), []byte("DD-WRT")):
|
||||
|
||||
Reference in New Issue
Block a user