Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/pigeon/fcm/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ defimpl Pigeon.Configurable, for: Pigeon.FCM.Config do
{:active, :once},
{:packet, :raw},
{:reuseaddr, true},
# HACK fcm.googleapis.com gives back a cert with '*.googleapis.com', but by
# default, :ssl.connect does not accept wildcards here. Provising
# server_name_indication does not produce another cert
{:customize_hostname_check, [
match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
]},
{:alpn_advertised_protocols, [<<"h2">>]}
]
|> add_port(config)
Expand Down