Skip to content

Commit

Permalink
Merge pull request yanue#593 from MPTres/master
Browse files Browse the repository at this point in the history
Preferences - Ignore separator in port number.  Fixes yanue#471
  • Loading branch information
yanue authored Jun 4, 2020
2 parents 025b938 + 85066ac commit a25ebf8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions V2rayU/Preference/PreferenceAdvance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ final class PreferenceAdvanceViewController: NSViewController, PreferencePane {
}

func saveSettingsAndReload() {

let httpPortVal = self.httpPort.stringValue.replacingOccurrences(of: ",", with: "")
let sockPortVal = self.sockPort.stringValue.replacingOccurrences(of: ",", with: "")
let pacPortVal = self.pacPort.stringValue.replacingOccurrences(of: ",", with: "")
let httpPortVal = String(self.httpPort.intValue)
let sockPortVal = String(self.sockPort.intValue)
let pacPortVal = String(self.pacPort.intValue)

let enableUdpVal = self.enableUdp.state.rawValue > 0
let enableMuxVal = self.enableMux.state.rawValue > 0
Expand Down

0 comments on commit a25ebf8

Please sign in to comment.