[GH-ISSUE #1879] Simplify http2https plugin design #1486

Closed
opened 2026-05-05 12:56:22 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @septs on GitHub (Jun 22, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1879

original configuration:

[web]
type = http
plugin = http2https
plugin_local_addr = 127.0.0.1:8080

simplify before:

[web]
type = http
local_ip = 127.0.0.1:8080
plugin = sslstrip
  1. rename http2https to sslstrip or strip_https
  2. read local_ip field replace plugin_local_addr
Originally created by @septs on GitHub (Jun 22, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1879 original configuration: ```ini [web] type = http plugin = http2https plugin_local_addr = 127.0.0.1:8080 ``` simplify before: ```ini [web] type = http local_ip = 127.0.0.1:8080 plugin = sslstrip ``` 1. rename `http2https` to `sslstrip` or `strip_https` 2. read `local_ip` field replace `plugin_local_addr`
gitea-mirror 2026-05-05 12:56:22 -06:00
  • closed this issue
  • added the
    todo
    label
Author
Owner

@fatedier commented on GitHub (Jun 24, 2020):

The name is ok, we can use it as alias.

local_ip is conflict with plugin. So we can't reuse this field. fields with plugin_ prefix will be the init parameters for plugins.

<!-- gh-comment-id:648614864 --> @fatedier commented on GitHub (Jun 24, 2020): The name is ok, we can use it as alias. `local_ip` is conflict with `plugin`. So we can't reuse this field. `fields` with `plugin_` prefix will be the init parameters for plugins.
Author
Owner

@septs commented on GitHub (Jun 24, 2020):

@fatedier remapping local_ip field to plugin_local_addr

<!-- gh-comment-id:648739799 --> @septs commented on GitHub (Jun 24, 2020): @fatedier remapping `local_ip` field to `plugin_local_addr`?
Author
Owner

@fatedier commented on GitHub (Jun 24, 2020):

It's not necessary. Plugin can only use fields with plugin_ prefix. It's not the core of frp, but only the plugin configures.

<!-- gh-comment-id:648742497 --> @fatedier commented on GitHub (Jun 24, 2020): It's not necessary. Plugin can only use fields with `plugin_` prefix. It's not the core of frp, but only the plugin configures.
Author
Owner

@septs commented on GitHub (Jun 24, 2020):

plugin cannot read all fields of ini-section is by design?

<!-- gh-comment-id:648745051 --> @septs commented on GitHub (Jun 24, 2020): plugin cannot read all fields of ini-section is by design?
Author
Owner

@septs commented on GitHub (Jul 28, 2020):

@fatedier https2http rename to with-tls maybe better

<!-- gh-comment-id:664891232 --> @septs commented on GitHub (Jul 28, 2020): @fatedier `https2http` rename to `with-tls` maybe better
Author
Owner

@septs commented on GitHub (Jul 28, 2020):

Maybe can provide an alias.

sslstrip, strip-https (external name) mapping to http2https (internal name)
with-tls, with-ssl (external name) mapping to https2http (internal name)

<!-- gh-comment-id:664894630 --> @septs commented on GitHub (Jul 28, 2020): Maybe can provide an alias. `sslstrip`, `strip-https` (external name) mapping to `http2https` (internal name) `with-tls`, `with-ssl` (external name) mapping to `https2http` (internal name)
Author
Owner

@fatedier commented on GitHub (Jul 28, 2020):

We will keep one plugin name finally.

We can make it compatible between sslstrip and http2https first. Then mark http2https deprecated.

In the specified future release version, we will remove the name http2https.

https2http seems ok now, we may not modify it and gather more advice.

<!-- gh-comment-id:664943450 --> @fatedier commented on GitHub (Jul 28, 2020): We will keep one plugin name finally. We can make it compatible between `sslstrip` and `http2https` first. Then mark `http2https` deprecated. In the specified future release version, we will remove the name `http2https`. `https2http` seems ok now, we may not modify it and gather more advice.
Author
Owner

@septs commented on GitHub (Jul 28, 2020):

@fatedier

Can you maintain uniform semantics?

plugin_local_addr -> plugin_local_ip

This can be understood as:

plugin_local_ip is local_ip with plugin

<!-- gh-comment-id:664958372 --> @septs commented on GitHub (Jul 28, 2020): @fatedier Can you maintain uniform semantics? `plugin_local_addr` -> `plugin_local_ip` This can be understood as: `plugin_local_ip` is `local_ip` with plugin
Author
Owner

@fatedier commented on GitHub (Jul 28, 2020):

local_ip should be 127.0.0.1

plugin_local_addr should be 127.0.0.1:80

They are different, address includes ip and port.

<!-- gh-comment-id:664993655 --> @fatedier commented on GitHub (Jul 28, 2020): `local_ip` should be `127.0.0.1` `plugin_local_addr` should be `127.0.0.1:80` They are different, address includes ip and port.
Author
Owner

@bisansan commented on GitHub (Oct 22, 2020):

sdfsdfdsf

------------------ 原始邮件 ------------------
发件人: "fatedier/frp" <notifications@github.com>;
发送时间: 2020年10月22日(星期四) 上午7:00
收件人: "fatedier/frp"<frp@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: Re: [fatedier/frp] Simplify http2https plugin design (#1879)

Closed #1879.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<!-- gh-comment-id:714186996 --> @bisansan commented on GitHub (Oct 22, 2020): sdfsdfdsf ------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "fatedier/frp" <notifications@github.com&gt;; 发送时间:&nbsp;2020年10月22日(星期四) 上午7:00 收件人:&nbsp;"fatedier/frp"<frp@noreply.github.com&gt;; 抄送:&nbsp;"Subscribed"<subscribed@noreply.github.com&gt;; 主题:&nbsp;Re: [fatedier/frp] Simplify `http2https` plugin design (#1879) Closed #1879. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1486
No description provided.