@ips = ['127.0.0.1', '192.168.1.0/24'] # 다수의 IP설정 가능 allowed = false # Remote IP를 Integer형으로 변경합니다. bremote_ip = request.remote_ip.split('.').map(&:to_i).pack('C*').unpack('N').first @ips.each do |ipstring| ip, mask = ipstring.split '/' # 비교할 IP도 Integer로 변경합니다. bip = ip.split('.').ma...