Skip to content

Commit

Permalink
fix: 某些情况下 v2ray 配置 port 为字符串
Browse files Browse the repository at this point in the history
Close #59
  • Loading branch information
geekdada committed Feb 24, 2020
1 parent f7006d6 commit b8af4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ export const formatV2rayConfig = (localPort: string|number, nodeConfig: VmessNod
loglevel: 'warning'
},
inbound: {
port: localPort,
port: Number(localPort),
listen: '127.0.0.1',
protocol: 'socks',
settings: {
Expand All @@ -1261,7 +1261,7 @@ export const formatV2rayConfig = (localPort: string|number, nodeConfig: VmessNod
vnext: [
{
address: nodeConfig.hostname,
port: nodeConfig.port,
port: Number(nodeConfig.port),
users: [
{
id: nodeConfig.uuid,
Expand Down

0 comments on commit b8af4d7

Please sign in to comment.