Skip to content

Commit

Permalink
fix yanue#127
Browse files Browse the repository at this point in the history
  • Loading branch information
yanue committed Sep 22, 2019
1 parent bf4d433 commit fecee9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion V2rayU/v2ray/V2rayConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class V2rayConfig: NSObject {
let encoder = JSONEncoder()
let data = try! encoder.encode(self.v2ray)
var jsonStr = String(data: data, encoding: .utf8)!
print("jsonStr",jsonStr)

// 2. format json text by javascript
jsonStr = self.formatJson(json: jsonStr)
Expand Down Expand Up @@ -774,7 +775,6 @@ class V2rayConfig: NSObject {

settings.udp = jsonParams["settings"]["udp"].boolValue
settings.ip = jsonParams["settings"]["ip"].stringValue
settings.timeout = jsonParams["settings"]["timeout"].intValue
settings.userLevel = jsonParams["settings"]["userLevel"].intValue

self.enableUdp = jsonParams["settings"]["udp"].boolValue
Expand Down
1 change: 0 additions & 1 deletion V2rayU/v2ray/v2rayInbound.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ struct V2rayInboundSocks: Codable {
var accounts: [V2rayInboundSockAccount]?
var udp: Bool = true
var ip: String?
var timeout: Int = 360
var userLevel: Int?
}

Expand Down

0 comments on commit fecee9e

Please sign in to comment.