This repository was archived by the owner on Nov 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
snappymail/v/0.0.0/app/libraries/RainLoop/Providers/Domain Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -168,16 +168,6 @@ private static function srv(string $domain) : ?array
168
168
*/
169
169
private static function autodiscover (string $ domain ) : ?array
170
170
{
171
- foreach ([
172
- "https:// {$ domain }" ,
173
- "https://autodiscover. {$ domain }" ,
174
- "http://autodiscover. {$ domain }"
175
- ] as $ host ) {
176
- $ result = static ::autodiscover_resolve ($ host , $ domain );
177
- if ($ result ) {
178
- return $ result ;
179
- }
180
- }
181
171
foreach (\SnappyMail \DNS ::SRV ("_autodiscover._tcp. {$ domain }" ) as $ record ) {
182
172
if (443 == $ record ['port ' ]) {
183
173
$ result = static ::autodiscover_resolve ("https:// {$ record ['target ' ]}" , $ domain );
@@ -190,6 +180,16 @@ private static function autodiscover(string $domain) : ?array
190
180
return $ result ;
191
181
}
192
182
}
183
+ foreach ([
184
+ "https:// {$ domain }" ,
185
+ "https://autodiscover. {$ domain }" ,
186
+ "http://autodiscover. {$ domain }"
187
+ ] as $ host ) {
188
+ $ result = static ::autodiscover_resolve ($ host , $ domain );
189
+ if ($ result ) {
190
+ return $ result ;
191
+ }
192
+ }
193
193
return null ;
194
194
}
195
195
You can’t perform that action at this time.
0 commit comments