iface-modem-location: validate SUPL server address

Devices will expect SUPL server given as either IP:PORT or FQDN:PORT,
so just avoid saying we require a 'URL' because it's not true.

We will use a new helper method to parse and validate user-provided
SUPL server address.
This commit is contained in:
Aleksander Morgado
2018-09-12 17:14:36 +00:00
committed by Dan Williams
parent 47ed19d5be
commit 6e84f3d459
6 changed files with 80 additions and 38 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ static GOptionEntry entries[] = {
},
{ "location-set-supl-server", 0, 0, G_OPTION_ARG_STRING, &set_supl_server_str,
"Set SUPL server address",
"[IP:PORT] or [URL]"
"[IP:PORT] or [FQDN:PORT]"
},
{ "location-inject-assistance-data", 0, 0, G_OPTION_ARG_FILENAME, &inject_assistance_data_str,
"Inject assistance data in the GNSS module",