projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restore Script.pm to master's version
[spider.git]
/
perl
/
AGWMsg.pm
diff --git
a/perl/AGWMsg.pm
b/perl/AGWMsg.pm
index 4d1068ff35707ca813b03d5ad2dbf86d7da07705..910d32cc4c94c50c1f75b023f1666014fcfcb352 100644
(file)
--- a/
perl/AGWMsg.pm
+++ b/
perl/AGWMsg.pm
@@
-46,13
+46,16
@@
$hpolltime = 300 unless defined $hpolltime;
%circuit = ();
$total_in = $total_out = 0;
$lastconnect = 0;
%circuit = ();
$total_in = $total_out = 0;
$lastconnect = 0;
-$connectinterval =
6
0;
+$connectinterval =
3
0;
sub init
{
return unless $enable;
sub init
{
return unless $enable;
- $rproc = shift;
+ # only set $rproc if there is something to set rproc from!
+ my $rp = shift;
+ $rproc = $rp if defined $rp;
+
finish();
dbg("AGW initialising and connecting to $addr/$port ...");
finish();
dbg("AGW initialising and connecting to $addr/$port ...");
@@
-406,6
+409,13
@@
sub _find
return $circuit{$call};
}
return $circuit{$call};
}
+sub peerhost
+{
+ my $conn = shift;
+ $conn->{peerhost} ||= 'ax25';
+ return $conn->{peerhost};
+}
+
sub connect
{
my ($conn, $line) = @_;
sub connect
{
my ($conn, $line) = @_;