mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-26 00:29:07 +01:00
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
|
||
|
}
|