Skip to content

Commit

Permalink
Update connect
Browse files Browse the repository at this point in the history
  • Loading branch information
prozanne committed Jan 13, 2021
1 parent 679886f commit 35398b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ async function supportDeviceIpOption(data, option) {

if (optionDeviceIp) {
data.deviceIp = optionDeviceIp;
logger.log(
chalk.cyanBright(`WITs tries connecting with ${optionDeviceIp}\n`)
);
await userInfoHelper.updateLatestUserAnswer({
deviceIp: optionDeviceIp
});
Expand Down
3 changes: 3 additions & 0 deletions command/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ async function supportDeviceIpOption(data, option) {

if (optionDeviceIp) {
data.deviceIp = optionDeviceIp;
logger.log(
chalk.cyanBright(`WITs tries connecting with ${optionDeviceIp}\n`)
);
await userInfoHelper.updateLatestUserAnswer({
deviceIp: optionDeviceIp
});
Expand Down

0 comments on commit 35398b8

Please sign in to comment.