add remote_addr and _port to info() (#20485)

This commit is contained in:
Christian Baars 2024-01-14 11:31:04 +01:00 committed by GitHub
parent 25cadcbbdc
commit be54104676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);