alibaba / alibaba/lightproxy

内联Values配置无效

Open
#248 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.2k
Forks
274
PR merge metrics
No merged PRs in 30d

Description

在规则是这样配置的
![image](https://user-images.githubusercontent.com/18695431/123792786-96a60200-d913-11eb-8e46-a28254e30c3c.png)

```

\``` header
Authorization: Bearer xx
\```

# 转发到线上接口
/^http://xx(.*)/ reqHeaders://{header} https://yy$1
```

使用了whistle 内联语法

到了whistle界面变成了

![image](https://user-images.githubusercontent.com/18695431/123792910-bc330b80-d913-11eb-8f8a-3763afdc7562.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported configuration in LightProxy using the shown whistle inline Values syntax, then trace how the inline header block and `reqHeaders://{header}` rule are parsed and displayed. Done means the configuration remains valid and the resulting rule preserves the intended Authorization header when forwarded.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
devtools, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.