Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HTTP proxy for APNs #445

Merged
merged 1 commit into from
Dec 7, 2019

Conversation

emiksk
Copy link
Contributor

@emiksk emiksk commented Dec 6, 2019

I implemented this feature based on sideshow/apns2#158.

This will make a request to APNs go through a proxy server if you have configured http_proxy. That means this change is backward incompatible.
I don't think it's a serious problem because anyone who uses the http_proxy option must have a proxy server available.

What do you think about it?

@emiksk emiksk force-pushed the support-proxy-for-apns branch from 307a205 to 0073e9f Compare December 7, 2019 13:23
@codecov-io
Copy link

codecov-io commented Dec 7, 2019

Codecov Report

Merging #445 into master will increase coverage by 0.2%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #445     +/-   ##
=========================================
+ Coverage   82.86%   83.07%   +0.2%     
=========================================
  Files          20       20             
  Lines        1360     1394     +34     
=========================================
+ Hits         1127     1158     +31     
+ Misses        190      188      -2     
- Partials       43       48      +5
Impacted Files Coverage Δ
config/config.go 93.97% <ø> (ø) ⬆️
gorush/notification_apns.go 85.23% <71.42%> (+1.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f2b614...0073e9f. Read the comment docs.

@appleboy
Copy link
Owner

appleboy commented Dec 7, 2019

LGTM. This also supports https and socks5 format.

@appleboy appleboy merged commit 1edfa9f into appleboy:master Dec 7, 2019
@appleboy
Copy link
Owner

appleboy commented Dec 7, 2019

969af2c

@emiksk
Copy link
Contributor Author

emiksk commented Dec 8, 2019

@appleboy
Thank you for your merge.
When will you release a version including this feature?

@sadohert
Copy link

@appleboy
Thank you for your merge.
When will you release a version including this feature?

Agreed - Curious if there's a plan to have this released... any idea on timeline?

Thanks in advance!

@esethna
Copy link

esethna commented Mar 11, 2020

+1 on the above questions regarding a release ^

@appleboy
Copy link
Owner

@emiksk @sadohert @esethna See the v1.12.0 https://github.com/appleboy/gorush/releases/tag/v1.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants