projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix is_ipaddr? change pc92 A/D default
[spider.git]
/
cmd
/
spoof.pl
diff --git
a/cmd/spoof.pl
b/cmd/spoof.pl
index ad2f9b8ccbb408a9b64b15accd907f87b36370a3..d4be673fbb24a5d905785710a73a5697730f6cb0 100644
(file)
--- a/
cmd/spoof.pl
+++ b/
cmd/spoof.pl
@@
-26,7
+26,7
@@
if ($self->priv < 9) {
my @out;
$call = uc $call;
my @out;
$call = uc $call;
-my $user = DXUser
->
get_current($call);
+my $user = DXUser
::
get_current($call);
unless ($user) {
$user = DXUser->new($call);
push @out, $self->msg('spf1', $call);
unless ($user) {
$user = DXUser->new($call);
push @out, $self->msg('spf1', $call);
@@
-35,7
+35,8
@@
unless ($user) {
# set up basic environment
$self->call($call);
$self->user($user);
# set up basic environment
$self->call($call);
$self->user($user);
-Log('DXCommand', "spoof '$newline' as $call by $mycall");
+my $addr = $self->hostname || '127.0.0.1';
+Log('cmd', "$self->{call}|$addr|spoof|$line");
my @in = $self->run_cmd($newline);
push @out, map {"spoof $call: $_"} @in;
$self->call($mycall);
my @in = $self->run_cmd($newline);
push @out, map {"spoof $call: $_"} @in;
$self->call($mycall);