modify the method for getting nginx's connectionns