-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add new protocol #65
base: master
Are you sure you want to change the base?
Add new protocol #65
Conversation
"auth_aes128_md5", "auth_aes128_sha1" add protocol
.gitmodules
Outdated
@@ -1,6 +1,6 @@ | |||
[submodule "Library/ShadowPath/ShadowPath/shadowsocks-libev"] | |||
path = Library/ShadowPath/ShadowPath/shadowsocks-libev | |||
url = [email protected]:icodesign/shadowsocks-libev.git | |||
url = Library/ShadowPath/ShadowPath/shadowsocks-libev.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something wrong here. It should be remote github url, not the local one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I will fix it.
Potatso/AppInitializer.swift
Outdated
logglyLogger.logFormatter = formatter | ||
DDLog.add(logglyLogger) | ||
// let logglyLogger = LogglyLogger() // Loggy Logger | ||
// logglyLogger.logglyKey = "107d98a8-c275-4369-a881-b36d3564c9ef" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens here. I think this PR should not involve touching too many thing. LogglyLogger can be left intact, and code before changed grabs api key from Info.plist
nicely, no need to hardcoded.
I think this part should not be commented or removed out.
What's the problem you're facing if not commenting those lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know to use LogglyLogger. I had register an account in "loggly.com". I use customer token replace the logglyKey. But it had a connection error when I run Potatso. So I remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Today, I try again, It seems normally.
Suspending, posting logs to Loggly
2018-01-10 11:35:15.647177+0800 Potatso[1576:769317] Posting to Loggly: {"rawlogmessage":
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it working before before you made change? InfoInternal
will grab API key from Info.plist
automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, in future I think we can remove it as developer will build their own app and change API key anyway.
HelpshiftCore.initialize(with: HelpshiftAll.sharedInstance()) | ||
HelpshiftCore.install(forApiKey: HELPSHIFT_KEY, domainName: HELPSHIFT_DOMAIN, appID: HELPSHIFT_ID) | ||
} | ||
// func configHelpShift() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about removing HelpShift as well. I will see how we will proceed this i.e cherry pick commits, or else.
response.result.error?.log("Fail to update ruleset details") | ||
} | ||
} | ||
// API.updateRuleSetListDetail(uuidsArray) { (response) in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just note, if you don't need any code, just remove it, no need to comment them out like this.
But we should include code in CloudSetManager
as for later we will do #62 .
So I think, better to leave code in CloudSetManager.swift
intact, not remove them yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Rarely used git. We use svn in out company. This is my first pull requests in github. it make some mistake.
@@ -14,7 +14,7 @@ + (NSString *) sharedGroupIdentifier { | |||
// reverted back | |||
// very curious why grabbing value from Info.plist will result in cannot connect to VPN all the time | |||
// it needs to be fixed like this as always | |||
return @"group.io.wasin.potatso"; | |||
return @"group.com.aiyuangong.Aiyuangong"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering what's the best approach for future going forward to allow contributors to contribute that it needs to change domain in order to successfully build like this. Without making changes to repo.
If you have any idea for best approach to do that, feel free to let me know.
BTW: Can you build the project by not changing the bundle id, or group identifier on your machine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I can't build without change bundle id. It seems to have to use paid apple developer when you use NetworkExtension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thank you for letting me know.
I will think about cleaner way not to pollute changes every time others push commit later.
PotatsoModel/Proxy.swift
Outdated
"auth_sha1_v4", | ||
"auth_aes128_md5", | ||
"auth_aes128_sha1", | ||
"auth_chain_a", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove these two lines for auth_chain_a
and auth_chain_b
as you said it doesn't support yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. I forgot to remove it in this file.
Please ignore result from travis-ci, I'm not done with it yet. |
- CallbackURLKit (1.0.0): | ||
- CallbackURLKit/Core (= 1.0.0) | ||
- CallbackURLKit/Core (1.0.0) | ||
- Cartography (1.0.1) | ||
- Cartography (3.0.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure Cartogrphy 3.0.1
works with Potatso?
Did you try cleaning up the project before building? Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I had cleaning up before. no errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More feedback regarding updating of dependencies.
Please ignore result from travis-ci, I'm not done with it yet. What's this? Where used? |
I had fix smoe mistake. But I can't create new pull requests. It remind this warning, "Can’t automatically merge. Don’t worry, you can still create the pull request." But I can't find any create pull reqest button |
It's ok, no need to create a new PR. Your new commits are updated with this same PR. |
Potatso/AppInitializer.swift
Outdated
// logglyLogger.logFormatter = formatter | ||
// DDLog.add(logglyLogger) | ||
let logglyLogger = LogglyLogger() // Loggy Logger | ||
logglyLogger.logglyKey = "107d98a8-c275-4369-a881-b36d3564c9ef" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please change back to this logglyLogger.logglyKey = InfoInternal.shared.getLogglyAPIKey()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
Potatso/AppInitializer.swift
Outdated
@@ -37,7 +37,7 @@ class AppInitializer: NSObject, AppLifeCycleProtocol { | |||
DDLog.add(fileLogger) | |||
|
|||
let logglyLogger = LogglyLogger() // Loggy Logger | |||
logglyLogger.logglyKey = InfoInternal.shared.getLogglyAPIKey() | |||
logglyLogger.logglyKey = "107d98a8-c275-4369-a881-b36d3564c9ef" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please revert back to this logglyLogger.logglyKey = InfoInternal.shared.getLogglyAPIKey()
?
"auth_sha1_v4", | ||
"auth_aes128_md5", | ||
"auth_aes128_sha1", | ||
// "auth_chain_a", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this line and below it.
getLogglyAPIKey from info.plist
can this support protocol_param? |
"auth_sha1_v4",
"auth_aes128_md5",
"auth_aes128_sha1"