Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.22 #68

Merged
merged 4 commits into from Aug 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Github Change Log

## zan-proxy@4.0.22 (2018-08-08)

**Fixed bug:**

- [windows下设置HOME环境变量后, postinstall和zan-proxy的HOME目录不一致](https://github.com/youzan/zan-proxy/issues/66)

## zan-proxy@4.0.21 (2018-08-07)

**Fixed bugs:**
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "zan-proxy",
"version": "4.0.21",
"version": "4.0.22",
"description": "前端代理",
"scripts": {
"build": "tsc && cd ./webui && npm run build && cd ../",
Expand Down
7 changes: 2 additions & 5 deletions src/ProxyServer/index.ts
@@ -1,8 +1,8 @@
import getPort from 'get-port';
import compose from 'koa-compose';
import LRU from 'lru-cache';
import path from 'path';
import os from 'os';
import path from 'path';
import {
CertificateService,
CertificateStorage,
Expand Down Expand Up @@ -78,10 +78,7 @@ export class ProxyServer {
maxAge: 1000 * 60 * 60,
});
const certStorage = new CertificateStorage(
path.join(
os.homedir(),
'.front-end-proxy/certificate',
),
path.join(os.homedir(), '.front-end-proxy/certificate'),
);
const certService = new CertificateService(certStorage, this.cache);
this.cert = {
Expand Down