Compare commits

..

5 Commits

1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ end
function new()
function encrypted_xord_ip()
ip_str = get(payload()[:REQUEST].headers, "X-Forwarded-For", "0.0.0.0")
ip_str = get(Dict(payload()[:REQUEST].headers), "X-Forwarded-For", "0.0.0.0")
ip = parse.(UInt8, split(ip_str, '.'))
@info "client ip: $ip"
xor(reinterpret(UInt32, Genie.Encryption.encrypt(rand(UInt8, 4)) |> hex2bytes)...)