Fixes #3004 Fixed errors in Common.pm
Fixes #3008 perl error : Global symbol "$client_ip"