Skip to content

Commit

Permalink
add remote_addr and _port to info() (arendst#20485)
Browse files Browse the repository at this point in the history
  • Loading branch information
Staars authored Jan 14, 2024
1 parent 25cadcb commit be54104
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ extern "C" {
be_map_insert_int(vm, "local_port", tcp->local_port);
be_map_insert_str(vm, "local_addr", tcp->local_addr.toString().c_str());
}
be_map_insert_int(vm, "remote_port", tcp->remotePort());
be_map_insert_str(vm, "remote_addr", tcp->remoteIP().toString().c_str());
}
be_pop(vm, 1);
be_return(vm);
Expand Down

0 comments on commit be54104

Please sign in to comment.