Wish Server.Start2(httpsOnly As Boolean)

b4auser1

Well-Known Member
Licensed User
Longtime User
Now I use solution based on filter from https://www.b4x.com/android/forum/threads/restrict-access-to-jserver-via-https.82577/

Solution with filter require to replace in uri not only http to https, but port with sslport. Info about port and sslport can be passed to filter class via global :( varibales only.

Please consider to add to server method Start2(httpsOnly As Boolean) which will work this way:
If httpsOnly and sslenabled then start only https connector
If Not httpsOnly and sslenabled then start http and https connectors
If Not httpsOnly and Not sslenabled then start only http connector
 
Last edited:
Top