Skip to content

Commit

Permalink
✨ 子域名和自定义域名可以二选一
Browse files Browse the repository at this point in the history
  • Loading branch information
luckjiawei committed Sep 25, 2024
1 parent ed1f3dc commit 843ab85
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
执行命令:`sudo xattr -cr Frpc-Desktop.app`

## 里程碑
- 2024-09-25: 发布v1.1.2版本 支持 http basic、子域名
- 2024-09-07: 发布v1.1.0版本 支持批量端口、支持单条代理开关控制
- 2024-08-24: 发布v1.0.9版本 支持镜像下载、导出导入配置
- 2024-08-17: 发布v1.0.8版本 支持stcp代理
Expand Down
8 changes: 8 additions & 0 deletions electron/api/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ export const initConfigApi = win => {
localPort: m?.localPort || null,
remotePort: m?.remotePort || null,
customDomains: m?.customDomains || [],
subdomain: m.subdomain || "",
basicAuth: m.basicAuth || false,
httpUser: m.httpUser || "",
httpPassword: m.httpPassword || "",
// 以下为stcp参数
stcpModel: "visited",
serverName: "",
Expand All @@ -180,6 +184,10 @@ export const initConfigApi = win => {
localPort: null,
remotePort: null,
customDomains: [],
subdomain: m.subdomain || "",
basicAuth: m.basicAuth || false,
httpUser: m.httpUser || "",
httpPassword: m.httpPassword || "",
// 以下为stcp参数
stcpModel: "visitors",
serverName: m?.serverName,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Frpc-Desktop",
"version": "1.1.1",
"version": "1.1.2",
"main": "dist-electron/main/index.js",
"description": "FRP跨平台桌面客户端,可视化配置,轻松实现内网穿透!",
"repository": "github:luckjiawei/frpc-desktop",
Expand Down
4 changes: 3 additions & 1 deletion src/views/proxy/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const handleGetPortCount = (portString: string) => {
};
const handleRangePort = () => {
if (isHttp || isHttps) {
if (isHttp.value || isHttps.value) {
return false;
}
if (editForm.value.localPort.indexOf("-") !== -1) {
Expand Down Expand Up @@ -238,7 +238,9 @@ const handleSubmit = async () => {
return;
}
}
if (
(isHttp.value || isHttps.value) &&
!(
editForm.value.subdomain ||
editForm.value.customDomains.filter(f => f !== "").length > 0
Expand Down
2 changes: 1 addition & 1 deletion types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare global {
name: string;
type: string;
localIp: string;
localPort: string;
localPort: any;
remotePort: string;
customDomains: string[];
stcpModel: string;
Expand Down

0 comments on commit 843ab85

Please sign in to comment.