X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fdb0sdx.pl;h=4fab75b2be2edcc4507e4fe2d9f0532c16202dcb;hb=a5d541aa69bd39091bde0ed3d2cb67022aaa2ab3;hp=2c5700448d7beb454f404650d4d2fc2edb48f64e;hpb=ed64ea9b9a101013cebeafaf76da0fc1a17722bf;p=spider.git diff --git a/cmd/show/db0sdx.pl b/cmd/show/db0sdx.pl index 2c570044..4fab75b2 100644 --- a/cmd/show/db0sdx.pl +++ b/cmd/show/db0sdx.pl @@ -13,13 +13,15 @@ my @out; $line = uc $line; return (1, $self->msg('e24')) unless $Internet::allow; return (1, "SHOW/DB0SDX , e.g. SH/DB0SDX ea7wa") unless $line && is_callsign($line); -my $target = 'dotnet.grossmann.com'; +my $target = $Internet::db0sdx_url || 'dotnet.grossmann.com'; my $port = 80; my $cmdprompt = '/query->.*$/'; my($info, $t); $t = new Net::Telnet; + +dbg("db0sdx: contacting $target:$port") if isdbg('db0sdx'); $info = $t->open(Host => $target, Port => $port, Timeout => 15); @@ -28,6 +30,8 @@ if (!$info) { push @out, $self->msg('e18', 'DB0SDX Database server'); } else { + dbg("db0sdx: connected to $target:$port") if isdbg('db0sdx'); + my $s = qq(