Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: reconfigure VPN on reinstall#84

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 1 commit intomainfromethan/reconfigure-on-reinstall
Mar 3, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedFeb 28, 2025
edited
Loading

Improvement over the change in#76 - reconfigures on launch if the VPN is unconfigured, but an existing session is present inUserDefaults & Keychain.

Additionally:

  • Changes the waiting for connectivity timeout on the dylib download from 7 days to 15 seconds.
  • Sets the icon to the 'off' opacity on startup. Previously it was only set to 'off' on startup if the VPN was configured. If the VPN is connected on startup, it'll immediately go back to the 'on' opacity.

@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ethanndicksonethanndicksonforce-pushed theethan/reconfigure-on-reinstall branch frombe8e02f to194f4bbCompareFebruary 28, 2025 08:03
@ethanndicksonethanndickson marked this pull request as ready for reviewFebruary 28, 2025 08:05
@@ -122,7 +122,7 @@ struct LoginForm: View {
).disabled(true)
}
Section{
SecureField("Session Token", text: $sessionToken, prompt:Text("●●●●●●●●"))
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Also removed the prompt because it was a lil confusing, and also the dots were way too big with no way to change it.

Comment on lines 33 to 36
// URLSession's waiting for connectivity sometimes hangs even when
// the network is up so this is deliberately short (15s) to avoid a
// poor UX where it appears stuck.
sessionConfig.timeoutIntervalForResource = 15
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This is a super weird bug, the VPN was stuck connecting after waking my laptop. However, when I cut my network connection, I saw a download failed error, which would suggest that's where it was stuck.

@@ -38,7 +38,7 @@ struct LoginForm: View {
.animation(.easeInOut, value: currentPage)
.onAppear{
baseAccessURL= state.baseAccessURL?.absoluteString?? baseAccessURL
sessionToken=""
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

We clear the Keychain password onSign out - so I don't think this does anything, actually.

@ethanndicksonethanndicksonforce-pushed theethan/reconfigure-on-reinstall branch from194f4bb to36fa256CompareFebruary 28, 2025 08:17
@ethanndicksonethanndickson merged commita906e98 intomainMar 3, 2025
4 checks passed
@deansheatherdeansheather deleted the ethan/reconfigure-on-reinstall branchMarch 7, 2025 07:38
@ethanndicksonethanndickson self-assigned thisMay 23, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ThomasK33ThomasK33ThomasK33 approved these changes

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@ThomasK33

[8]ページ先頭

©2009-2025 Movatter.jp