From 3c6008d27a21705fd5877be85b3cf8b2deaeee4f Mon Sep 17 00:00:00 2001 From: WasiqB Date: Mon, 1 Oct 2018 23:30:47 +0530 Subject: [PATCH] Updated for issue #62. --- .../github/wasiqb/coteafs/appium/service/AppiumServer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/wasiqb/coteafs/appium/service/AppiumServer.java b/src/main/java/com/github/wasiqb/coteafs/appium/service/AppiumServer.java index 121eb65..5046fc6 100644 --- a/src/main/java/com/github/wasiqb/coteafs/appium/service/AppiumServer.java +++ b/src/main/java/com/github/wasiqb/coteafs/appium/service/AppiumServer.java @@ -227,8 +227,10 @@ private String getUrl () { .append ("@") .append (this.setting.getHost ()); } else { - sb.append (this.setting.getHost ()) - .append (":") + sb.append (this.setting.getHost ()); + } + if (this.setting.getPort () > 0) { + sb.append (":") .append (this.setting.getPort ()); } return sb.toString ();