lantern icon indicating copy to clipboard operation
lantern copied to clipboard

pacUrl is set/unset incorrectly

Open lanterndev opened this issue 13 years ago • 8 comments

Currently /connectivity/pacUrl gets unset when /settings/systemProxy is false, and set when it's true. This is the opposite of when the UI needs to display it. Instead, it should be set once, as soon as the backend knows what it should be, and never needs to be unset thereafter.

(Also, it's still getting a random number tacked onto the end (e.g. proxy_on.pac-1374763195) that it doesn't need.)

lanterndev avatar Mar 15 '13 19:03 lanterndev

I think this is fixed in 779c3b7.

ghostdance avatar Mar 15 '13 20:03 ghostdance

just ran from a fresh checkout of HEAD with no ~/.lantern dir and pacUrl is no longer set by the time we get to the systemProxy modal, reopening.

Screen Shot 2013-03-22 at 9 40 44 AM

Screen Shot 2013-03-22 at 9 42 28 AM

lanterndev avatar Mar 22 '13 13:03 lanterndev

Once I complete setup, go into settings, and set systemProxy to false, pacUrl is finally populated:

Screen Shot 2013-03-22 at 10 12 41 AM

It's still getting a random number at the end though, which @myleshorton said is no longer necessary. Can we ditch that once and for all? It'd really be awesome if the random path were like 7 characters shorter so that url could fit on one line, too.

lanterndev avatar Mar 22 '13 14:03 lanterndev

Right - this was discussed at length on IRC yesterday - over to you @ghostdance!

On Friday, March 22, 2013, skivvies wrote:

Once I complete setup, go into settings, and set systemProxy to false, pacUrl is finally populated:

[image: Screen Shot 2013-03-22 at 10 12 41 AM]https://f.cloud.github.com/assets/475147/291048/e5121c34-92fa-11e2-9bf0-f0395cec0c19.png

It's still getting a random number at the end though, which @myleshortonhttps://github.com/myleshortonsaid is no longer necessary. Can we ditch that once and for all? It'd really be awesome if the random path were like 7 characters shorter so that url could fit on one line, too.

— Reply to this email directly or view it on GitHubhttps://github.com/getlantern/lantern/issues/597#issuecomment-15298816 .

Sent from Gmail Mobile

myleshorton avatar Mar 22 '13 14:03 myleshorton

A good deal of what was discussed at length yesterday was specific to OS X. This previously worked because it was set in the Launcher to be available during setup and immediately after.

I can't really test this thoroughly now, since I can't sign into the Lantern network.

ghostdance avatar Mar 22 '13 15:03 ghostdance

Still observing a null pacUrl, reopening. Plz don't close before testing.

lanterndev avatar Mar 22 '13 15:03 lanterndev

We discussed explicitly that pacUrl was no longer set at startup and that there was a bug with the dashboard crashing, which it turns out were the same bug. Are you working on this or should I fix? Should be a one line change in Connectivity.

myleshorton avatar Mar 22 '13 16:03 myleshorton

looks like this is working now, awesome.

lanterndev avatar Mar 22 '13 17:03 lanterndev