This repository was archived by the owner on Jul 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
src/usr/local/emhttp/plugins/tailscale/include Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2525 - uses : actions/checkout@v4
2626 - uses : php-actions/composer@v6
2727 - uses : php-actions/phpstan@v3
28+ with :
29+ version : composer
2830
2931 commitlint :
3032 name : Commitlint
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ function requestErase(e) {
195195
196196 if ($.cookie('tailscale_view_mode') == 'advanced') {
197197 $('.advanced').show();
198- $('.basic').hide();
199198 }
200199
201200 $('.advancedview').switchButton({
@@ -205,8 +204,11 @@ function requestErase(e) {
205204 checked: $.cookie('tailscale_view_mode') == 'advanced'
206205 });
207206 $('.advancedview').change(function(){
208- $('.advanced').toggle('slow');
209- $('.basic').toggle('slow');
207+ if($('.advancedview').is(':checked')) {
208+ $('.advanced').show('slow');
209+ } else {
210+ $('.advanced').hide('slow');
211+ }
210212 $.cookie('tailscale_view_mode', $('.advancedview').is(':checked') ? 'advanced' : 'basic', {expires:3650});
211213 });
212214 });
Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ public static function download_url(string $url): string
147147 curl_setopt ($ ch , CURLOPT_FOLLOWLOCATION , true );
148148 curl_setopt ($ ch , CURLOPT_REFERER , "" );
149149 curl_setopt ($ ch , CURLOPT_FAILONERROR , true );
150+ curl_setopt ($ ch , CURLOPT_USERAGENT , 'plugin-metrics/1.0.0 ' );
150151 $ out = curl_exec ($ ch ) ?: false ;
151152 curl_close ($ ch );
152153 return strval ($ out );
You can’t perform that action at this time.
0 commit comments