File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,10 @@ impl PushProvider for ApnsProvider {
175175 ) ;
176176 Err ( Error :: ApnsCertificateUnknownCA )
177177 }
178+ dbg if dbg. contains ( "received fatal alert: CertificateExpired" ) => {
179+ info ! ( "APNs certificate expired: debug:{dbg}, display: {client_error}" ) ;
180+ Err ( Error :: ApnsCertificateExpired )
181+ }
178182 _ => Err ( Error :: Apns ( e) ) ,
179183 }
180184 }
Original file line number Diff line number Diff line change @@ -79,11 +79,7 @@ pub fn new_state(
7979 #[ cfg( feature = "multitenant" ) ]
8080 let jwt_secret = config. jwt_secret . clone ( ) ;
8181
82- let public_ip = match networking:: find_public_ip_addr ( ) {
83- Ok ( ip) => Some ( ip) ,
84- // Note: Should we pass this error back up?
85- Err ( _e) => None ,
86- } ;
82+ let public_ip = networking:: find_public_ip_addr ( ) . ok ( ) ;
8783
8884 Ok ( AppState {
8985 config : config. clone ( ) ,
You can’t perform that action at this time.
0 commit comments