Commit e6902c2 1 parent c10894f commit e6902c2 Copy full SHA for e6902c2
File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<!-- next-header -->
4
4
5
+ ## [ 2025.2.20] - 2025.2.20
6
+
7
+ ### Fixes
8
+
9
+ - 修复命令行未序列化参数被api配置覆盖掉的bug
10
+
5
11
## [ 2025.2.10] - 2025.2.10
6
12
7
13
### Fixes
Original file line number Diff line number Diff line change @@ -33,11 +33,18 @@ async fn what_web_api(
33
33
token : web:: Data < TokenAuth > ,
34
34
auth : BearerAuth ,
35
35
config : web:: Json < ObserverWardConfig > ,
36
+ cli_config : web:: Data < ObserverWardConfig > ,
36
37
cl : web:: Data < RwLock < ClusterType > > ,
37
38
) -> impl Responder {
38
39
if !validator ( token, auth) {
39
40
return HttpResponse :: Unauthorized ( ) . finish ( ) ;
40
41
}
42
+ let mut config = config. clone ( ) ;
43
+ config. plugin = cli_config. plugin . clone ( ) ;
44
+ config. config_dir = cli_config. config_dir . clone ( ) ;
45
+ config. mode = cli_config. mode . clone ( ) ;
46
+ config. proxy = cli_config. proxy . clone ( ) ;
47
+ config. nuclei_args = cli_config. nuclei_args . clone ( ) ;
41
48
let webhook = config. webhook . is_some ( ) ;
42
49
if let Ok ( cl) = cl. read ( ) {
43
50
let output = Output :: new ( & config) ;
You can’t perform that action at this time.
0 commit comments