Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Release 2.6.1 Update 3
Browse files Browse the repository at this point in the history
1. Fixed a small bug which let custom http proxy fail to get correct port number.
2. Make HA Server as default proxy server.

Previous Update: Implemented new ways to access setting pages and refresh.
  • Loading branch information
ming900518 committed Jan 8, 2021
1 parent 5220b6f commit ea649f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions KanColleCommand.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@
INFOPLIST_FILE = KanColleCommand/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = "1.0 (TW.CHT-R2.6.1Beta2)";
MARKETING_VERSION = "1.0 (TW.CHT-R2.6.1Beta3)";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = tw.mingchang.ikancollecmd;
PRODUCT_NAME = iKanColleCmd;
Expand Down Expand Up @@ -1014,7 +1014,7 @@
INFOPLIST_FILE = KanColleCommand/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = "1.0 (TW.CHT-R2.6.1Beta2)";
MARKETING_VERSION = "1.0 (TW.CHT-R2.6.1Beta3)";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = tw.mingchang.ikancollecmd;
PRODUCT_NAME = iKanColleCmd;
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion KanColleCommand/Page/SettingVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ extension SettingVC: UITableViewDelegate {
})
HTTPproxyInfo.addAction(UIAlertAction(title: "完成", style: .default) { action in
Setting.saveCustomProxyIP(value: HTTPproxyInfo.textFields?[0].text ?? "")
Setting.saveCustomProxyPort(value: HTTPproxyInfo.textFields?[0].text ?? "")
Setting.saveCustomProxyPort(value: HTTPproxyInfo.textFields?[1].text ?? "")
Setting.saveCustomProxyUser(value: HTTPproxyInfo.textFields?[2].text ?? "")
Setting.saveCustomProxyPass(value: HTTPproxyInfo.textFields?[3].text ?? "")
self.present(HTTPcookieNeeded, animated: true)
Expand Down
8 changes: 4 additions & 4 deletions KanColleCommand/WebView/WebHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ class WebHandler: URLProtocol, URLSessionDelegate, URLSessionDataDelegate, URLSe

if Setting.getconnection() == 2 {
print("[INFO] Using proxy to load response.")
let proxy_server = "non.http.monitor.moe"
let proxy_port = 8989
let proxy_server = "connector.monitor.moe"
let proxy_port = 8443
let proxy_user = "ooi.moe"
let proxy_pass = "ooi.moe"
let hostKey = kCFNetworkProxiesHTTPProxy as String
Expand All @@ -180,7 +180,7 @@ class WebHandler: URLProtocol, URLSessionDelegate, URLSessionDataDelegate, URLSe
print(proxy_server)
let port:Int? = Int(Setting.getCustomProxyPort())
let proxy_port = port
print(proxy_port ?? "80")
print(proxy_port ?? "Empty, using 80 instead.")
let proxy_user = Setting.getCustomProxyUser()
print(proxy_user)
let proxy_pass = Setting.getCustomProxyPass()
Expand All @@ -199,7 +199,7 @@ class WebHandler: URLProtocol, URLSessionDelegate, URLSessionDataDelegate, URLSe
let proxy_server = Setting.getCustomProxyIP()
let port:Int? = Int(Setting.getCustomProxyPort())
let proxy_port = port
print(proxy_port ?? "443")
print(proxy_port ?? "Empty, using 443 instead.")
let proxy_user = Setting.getCustomProxyUser()
let proxy_pass = Setting.getCustomProxyPass()
let hostKey = kCFNetworkProxiesHTTPProxy as String
Expand Down

0 comments on commit ea649f1

Please sign in to comment.