fix attr_accessor for :client_ip
remove unnecessary self.
fix self::