Skip to content

Commit

Permalink
Allow quicserver alias domain req
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Zheng committed Jan 31, 2024
1 parent 89349cf commit 8b0672c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/img-optm.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public function notify_img()
return Cloud::err('no notified data');
}

if (empty($post_data['server']) || substr($post_data['server'], -11) !== '.quic.cloud') {
if (empty($post_data['server']) || (substr($post_data['server'], -11) !== '.quic.cloud' && substr($post_data['server'], -15) !== '.quicserver.com')) {
self::debug('notify exit: no/wrong server');
return Cloud::err('no/wrong server');
}
Expand Down Expand Up @@ -2093,10 +2093,10 @@ public function handler()
self::start_async();
break;

/**
* Batch switch
* @since 1.6.3
*/
/**
* Batch switch
* @since 1.6.3
*/
case self::TYPE_BATCH_SWITCH_ORI:
case self::TYPE_BATCH_SWITCH_OPTM:
$this->_batch_switch($type);
Expand Down

0 comments on commit 8b0672c

Please sign in to comment.