Skip to content

Commit

Permalink
dep update & fix url config
Browse files Browse the repository at this point in the history
  • Loading branch information
lujiajing1126 committed Dec 3, 2019
1 parent 98cc475 commit 935e36b
Show file tree
Hide file tree
Showing 3 changed files with 673 additions and 871 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ program.version(version)
.option("-m, --mode <mode>", "Server Type, only redis available now.")
.parse(process.argv);

const parsedURL = program.uri ? url.parse(program.uri) : {};
const parsedURL = program.uri ? new url.URL(program.uri) : {};
const host = program.host || parsedURL.hostname || "127.0.0.1";
const port = program.port || parsedURL.port || 6379;
const auth = program.auth || null;
const auth = program.auth || parsedURL.password;
const mode = program.mode || "redis";

const socket = program.socket;
Expand Down
Loading

0 comments on commit 935e36b

Please sign in to comment.