Add wireguard related changes and test cases
[platform/core/api/vpn-setting.git] / src / vpn.c
index c3a7530..eb966a7 100755 (executable)
--- a/src/vpn.c
+++ b/src/vpn.c
@@ -288,7 +288,8 @@ int vpn_get_vpn_handle(const char *name, const char *host, const char *domain, v
                return VPN_ERROR_INVALID_OPERATION;
        }
 
-       if (name == NULL || host == NULL || domain == NULL || handle == NULL)
+       // Note: Domain is optional parameter at connman
+       if (name == NULL || host == NULL || handle == NULL)
                return VPN_ERROR_INVALID_PARAMETER;
 
        rv = _vpn_get_vpn_handle(name, host, domain, handle);