Skip to content
Snippets Groups Projects
Commit 2593a626 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Allow password to be read from modopts.ini [dyndns] 'password' key

Overrides whatever is passed on the command-line. Works around issue of '%'
character included in password bein interpretted as a command-line specifier
(e.g. %s).

Increment revision to 2.0.
parent 7251c971
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// usage: ?dyndns <password> [ip_address] [-mx address] // usage: ?dyndns <password> [ip_address] [-mx address]
const REVISION = "1.22"; const REVISION = "2.0";
const rx_log_level = LOG_INFO; const rx_log_level = LOG_INFO;
const tx_log_level = LOG_DEBUG; const tx_log_level = LOG_DEBUG;
...@@ -29,6 +29,7 @@ var mx_record = options.mx; ...@@ -29,6 +29,7 @@ var mx_record = options.mx;
var ip_address = options.ip; var ip_address = options.ip;
var ip6_address = options.ip6; var ip6_address = options.ip6;
var host_name = system.qwk_id; var host_name = system.qwk_id;
var password = options.password || argv[0];
for(i=1;i<argc;i++) { for(i=1;i<argc;i++) {
switch (argv[i].toLowerCase()) { switch (argv[i].toLowerCase()) {
...@@ -77,7 +78,7 @@ for(h in host_list) { ...@@ -77,7 +78,7 @@ for(h in host_list) {
writeln(host_name); writeln(host_name);
break; break;
case "pw?": case "pw?":
writeln(argv[0]); writeln(password);
break; break;
case "ip?": case "ip?":
if(ip_address) if(ip_address)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment