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 25
25
- uses : actions/checkout@v4
26
26
- uses : php-actions/composer@v6
27
27
- uses : php-actions/phpstan@v3
28
+ with :
29
+ version : composer
28
30
29
31
commitlint :
30
32
name : Commitlint
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ function requestErase(e) {
195
195
196
196
if ($.cookie('tailscale_view_mode') == 'advanced') {
197
197
$('.advanced').show();
198
- $('.basic').hide();
199
198
}
200
199
201
200
$('.advancedview').switchButton({
@@ -205,8 +204,11 @@ function requestErase(e) {
205
204
checked: $.cookie('tailscale_view_mode') == 'advanced'
206
205
});
207
206
$('.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
+ }
210
212
$.cookie('tailscale_view_mode', $('.advancedview').is(':checked') ? 'advanced' : 'basic', {expires:3650});
211
213
});
212
214
});
Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ public static function download_url(string $url): string
147
147
curl_setopt ($ ch , CURLOPT_FOLLOWLOCATION , true );
148
148
curl_setopt ($ ch , CURLOPT_REFERER , "" );
149
149
curl_setopt ($ ch , CURLOPT_FAILONERROR , true );
150
+ curl_setopt ($ ch , CURLOPT_USERAGENT , 'plugin-metrics/1.0.0 ' );
150
151
$ out = curl_exec ($ ch ) ?: false ;
151
152
curl_close ($ ch );
152
153
return strval ($ out );
You can’t perform that action at this time.
0 commit comments