Select the types of activity you want to include in your feed.
Fix IPv6 loopback matching in redirect_uri validation
Match both "::1" and "[::1]" for the host to handle Uri library behavior for IPv6 addresses. Add test for http://[::1]:8080/callback which was previously claimed but untested.
···132132133133type redirect_uri = string
134134135135+let is_loopback_host = function
136136+ | "localhost" | "127.0.0.1" | "::1" | "[::1]" -> true
137137+ | _ -> false
138138+135139let is_loopback_http uri =
136140 match Uri.scheme uri with
137141 | Some "http" -> (
138138- match Uri.host uri with
139139- | Some ("localhost" | "127.0.0.1" | "[::1]") -> true
140140- | _ -> false)
142142+ match Uri.host uri with Some h -> is_loopback_host h | None -> false)
141143 | _ -> false
142144143145let redirect_uri s =