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

Enable data cap on iOS #1168

Merged
merged 7 commits into from
Sep 11, 2024
Merged

Enable data cap on iOS #1168

merged 7 commits into from
Sep 11, 2024

Conversation

atavism
Copy link
Contributor

@atavism atavism commented Sep 10, 2024

@atavism
Copy link
Contributor Author

atavism commented Sep 10, 2024

I did some testing and this is working well for me

@atavism atavism requested a review from jigar-f September 10, 2024 22:04
@@ -107,6 +108,10 @@ type StatsTracker interface {
UpdateStats(string, string, string, int, int, bool)
}

type BandwidthTracker interface {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for making these changes.

@@ -11,7 +11,7 @@ import UIKit

// For IOS App Lunch time issue
//https://developer.apple.com/videos/play/wwdc2019/423/?time=305
@UIApplicationMain
@main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why we are changing this ?

Copy link
Contributor

@jigar-f jigar-f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LTGM, I'll test today and merge it.

@jigar-f
Copy link
Contributor

jigar-f commented Sep 11, 2024

@atavism I think all API calls to user API fail due to chained proxy unavailable I feel this might be an issue on the client-side specific to IOS only. Seems like we are not calling ListenAndServeHTTP that why it throwing error here

@jigar-f
Copy link
Contributor

jigar-f commented Sep 11, 2024

This issue there because we changes our base URL for User API


if strings.HasSuffix(baseURL, common.APIBaseUrl) {
log.Debug("using proxied.Fronted")
//this is ios version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atavism For iOS only proxied.Fronted works nothing else.

@jigar-f
Copy link
Contributor

jigar-f commented Sep 11, 2024

Seems like this is not related to data cap, I have created a ticket here

@jigar-f jigar-f merged commit 727623a into main Sep 11, 2024
2 checks passed
@jigar-f jigar-f deleted the atavism/ios-datacap branch September 11, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants