Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 224 (config['allowed_ips'] ||= []).include?(request.ip) or
- 225 return err("Not allowed: #{request.ip}\n" \
- 226 "You need to put this IP in the 'allowed_ips' array "\
- 227 "in:\n #@@dir/config.yml")
- AND
- 259 def config
- 260 @config ||= begin
- 261 YAML.load(File.read("#@@dir/config.yml"))
- 262 rescue Errno::ENOENT
- 263 {}
- 264 end
- 265 end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement