Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
Update NEKit to fix that sometimes http proxy will stop unexpectly
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuhaow committed Dec 24, 2016
1 parent 0c0e8e9 commit 72f0081
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ github "behrang/YamlSwift" "3.0.0"
github "zhuhaow/tun2socks" "0.5.0"
github "ReactiveCocoa/ReactiveSwift" "1.0.0-alpha.3"
github "ReactiveCocoa/ReactiveCocoa" "5.0.0-alpha.3"
github "zhuhaow/NEKit" "3c3c6f5908d15f997ef48a29741ce0bf79693035"
github "zhuhaow/NEKit" "c32a02c0d4d3b802d957799723779c177d349d49"
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.10.0.beta6

### Fixed
- Fixed that sometimes http proxy will stop unexpectly.

## 0.10.0.beta5

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion SpechtLite/Manager/ProfileManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class ProfileManager {
RuleManager.currentManager = configuration.ruleManager
let newPort = UInt16(configuration.proxyPort ?? Opt.defaultProxyPort)

let address = allowFromLan.value ? nil : IPv4Address(fromString: "127.0.0.1")
let address = allowFromLan.value ? nil : IPAddress(fromString: "127.0.0.1")
let httpServer = GCDHTTPProxyServer(address: address, port: NEKit.Port(port: newPort))
let socks5Server = GCDSOCKS5ProxyServer(address: address, port: NEKit.Port(port: newPort + 1))

Expand Down

0 comments on commit 72f0081

Please sign in to comment.