Repository navigation
6.2.0: the network selector in the Android library and in links (e=) - #219
Conversation
CamexTunnel.fields() gets Network selector, passed as --network-selector with a network name and without a psk (camex refuses it otherwise); ConnectLink reads e=; the link's page shows it and passes it on.
PR Summary by QodoExpose network selectors in Android settings and connection links
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
…d takes them from a link; CamexTunnel.SELECTOR; the link's page takes a network link, refuses a selector with a psk, and gives --network and --network-selector
The follow-up of #218 (6.1.0, #201): the selector where the Android apps and links can carry it.
Values/CamexTunnel.fields(): a text field Network selector after the network's name.check()takes 1 to 31 ofA-Z a-z 0-9 . _ -, and only with a network name and without a psk (the selector goes in CPace; camex refuses--network-selectorotherwise).argv()passes--network-selector.ConnectLink:e=(the lettersis the psk already), checked as above; a malformed one is named inerrorsand left out.docs/connect/index.html: showseas Network selector, names a malformed one, passes it on to the app (it passes every field already).install.shdoes not adde=: its link has the psk, and with a psk there is no CPace. A link with a selector is written by hand (#h=…&w=…&e=…), asdocs/android.mdsays.The companion apps (decoder, microsnander, vectis) build their settings from
fields(), so they get the field by themselves; they will be told.Tests (local, Docker):
ValuesTest(the field's place, kind and label;selector(): check, argv, refused with a psk or without a network,e=from a link and a malformed one),:tunnel:testDebugUnitTest,lintDebug,assembleDebug;docker/test-connect-page.sh(e= shown and passed on, a malformed one named); C unit tests;check-version.sh.