Просмотр исходного кода

Remove unnecessary validation

- Fixes post-LoadConfig callback initialization
Rod Hynes 7 лет назад
Родитель
Сommit
3ef11effe6
1 измененных файлов с 0 добавлено и 15 удалено
  1. 0 15
      psiphon/config.go

+ 0 - 15
psiphon/config.go

@@ -555,21 +555,6 @@ func (config *Config) Commit() error {
 			fmt.Errorf("invalid client version: %s", err))
 	}
 
-	if config.NetworkConnectivityChecker != nil {
-		return common.ContextError(
-			errors.New("NetworkConnectivityChecker interface must be set at runtime"))
-	}
-
-	if config.DeviceBinder != nil {
-		return common.ContextError(
-			errors.New("DeviceBinder interface must be set at runtime"))
-	}
-
-	if config.DnsServerGetter != nil {
-		return common.ContextError(
-			errors.New("DnsServerGetter interface must be set at runtime"))
-	}
-
 	if !common.Contains(
 		[]string{"", protocol.PSIPHON_SSH_API_PROTOCOL, protocol.PSIPHON_WEB_API_PROTOCOL},
 		config.TargetApiProtocol) {