Prevent setting primary resolver if using custom DNS port (#861)

Most host managers doesn't support using custom DNS ports.
We are now disabling setting it up to avoid unwanted results
This commit is contained in:
Maycon Santos
2023-05-17 00:03:26 +02:00
committed by GitHub
parent 4c5b85d80b
commit db69a0cf9d
8 changed files with 59 additions and 12 deletions

View File

@ -32,6 +32,10 @@ func newFileConfigurator() (hostManager, error) {
return &fileConfigurator{}, nil
}
func (f *fileConfigurator) supportCustomPort() bool {
return false
}
func (f *fileConfigurator) applyDNSConfig(config hostDNSConfig) error {
backupFileExist := false
_, err := os.Stat(fileDefaultResolvConfBackupLocation)