diff --git a/common.sh b/common.sh
index cc4262e67b084f6493c10e99a39c1e2c5e3c298b..5883c628412c2d74e38525c4f883800b60f348b1 100644
--- a/common.sh
+++ b/common.sh
@@ -33,10 +33,10 @@ function getProxyConf()
     fi
 
     # Obtain proxy configuration by reading the proxy file
-    phost=$(grep "^phost=" ${PROXYCONF} | cut -f2 -d=)
-    pport=$(grep "^pport=" ${PROXYCONF} | cut -f2 -d=)
-    puid=$(grep "^puid=" ${PROXYCONF} | cut -f2 -d=)
-    ppasswd=$(grep "^ppasswd=" ${PROXYCONF} | cut -f2 -d=)
+    phost=$(grep "^phost=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=)
+    pport=$(grep "^pport=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=)
+    puid=$(grep "^puid=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=)
+    ppasswd=$(grep "^ppasswd=" ${PROXYCONF} 2> /dev/null | cut -f2 -d=)
 
     # Add a prefix to each non empty proxy information
     test -n "${phost}" && phost="--phost=${phost}"