Skip to content

Commit 694bb6f

Browse files
committed
fix: http default paser and conn parser
1 parent dfe77dd commit 694bb6f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

server/config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ server:
1919
workflow: generate.yml
2020
owner:
2121
token:
22-
workflow: generate.yaml
2322
saas:
2423
enable: true
2524
url: https://build.chainreactors.red
@@ -60,7 +59,7 @@ listeners:
6059
enable: true
6160
host: 0.0.0.0
6261
port: 8080
63-
parser: malefic
62+
parser: auto
6463
tls:
6564
enable: true
6665
encryption:
@@ -73,7 +72,7 @@ listeners:
7372
error_page: ""
7473
bind:
7574
- name: bind_pipeline
76-
enable: true
75+
enable: false
7776
encryption:
7877
enable: true
7978
type: aes

server/listener/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func (pipeline *HTTPPipeline) handler(w http.ResponseWriter, r *http.Request) {
246246
}
247247

248248
logs.Log.Debugf("[pipeline.%s] accept from %s", pipeline.Name, r.RemoteAddr)
249-
switch pipeline.Parser {
249+
switch conn.Parser.Implant {
250250
case consts.ImplantMalefic:
251251
pipeline.handleMalefic(w, r, conn)
252252
case consts.ImplantPulse:

0 commit comments

Comments
 (0)