     private let walletManager: WalletManager
     private var okAction: UIAlertAction?
     private var timer: Timer?
+    private let decimalSeparator = NumberFormatter().decimalSeparator ?? "."
 
     init(walletManager: WalletManager) {
         self.walletManager = walletManager

                    UserDefaults.customNodePort = Int(portText)
                }
                DispatchQueue.walletQueue.async {
                    self.walletManager.peerManager?.connect()
                }
                self.button.title = S.NodeSelector.automaticButton
            }
        })
        self.okAction = okAction

    }

    @objc private func ipAddressDidChange(textField: UITextField) {
        if let text = textField.text?.replacingOccurrences(of: decimalSeparator, with: ".") {
            if text.components(separatedBy: ".").count == 4 && ascii2addr(AF_INET, text, nil) > 0 {
                self.okAction?.isEnabled = true
                return
