mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-25 16:18:49 +01:00
891ba277b1
Initial modification to support mobile client Export necessary interfaces for Android framework
33 lines
671 B
Go
33 lines
671 B
Go
package dns
|
|
|
|
import (
|
|
"context"
|
|
|
|
nbdns "github.com/netbirdio/netbird/dns"
|
|
"github.com/netbirdio/netbird/iface"
|
|
)
|
|
|
|
// DefaultServer dummy dns server
|
|
type DefaultServer struct {
|
|
}
|
|
|
|
// NewDefaultServer On Android the DNS feature is not supported yet
|
|
func NewDefaultServer(ctx context.Context, wgInterface *iface.WGIface, customAddress string) (*DefaultServer, error) {
|
|
return &DefaultServer{}, nil
|
|
}
|
|
|
|
// Start dummy implementation
|
|
func (s DefaultServer) Start() {
|
|
|
|
}
|
|
|
|
// Stop dummy implementation
|
|
func (s DefaultServer) Stop() {
|
|
|
|
}
|
|
|
|
// UpdateDNSServer dummy implementation
|
|
func (s DefaultServer) UpdateDNSServer(serial uint64, update nbdns.Config) error {
|
|
return nil
|
|
}
|