Do not pass the -H option to dhclient task
[platform/upstream/connman.git] / plugins / dhclient.c
index b3bcf0e..8b2af6b 100644 (file)
@@ -149,7 +149,6 @@ static void dhclient_died(struct connman_task *task, void *user_data)
 static void dhclient_setup(struct connman_task *task, const char *ifname)
 {
        const char *path, *intf = "org.moblin.connman.Task";
-       const char *hostname;
 
        path = connman_task_get_path(task);
 
@@ -164,13 +163,6 @@ static void dhclient_setup(struct connman_task *task, const char *ifname)
                                                        STATEDIR, ifname);
        connman_task_add_argument(task, "-cf", "%s/dhclient.conf", SCRIPTDIR);
        connman_task_add_argument(task, "-sf", "%s/dhclient-script", SCRIPTDIR);
-
-       hostname = connman_utsname_get_hostname();
-#ifdef HAVE_DHCLIENT_HOSTNAME
-       if (hostname != NULL)
-               connman_task_add_argument(task, "-H", hostname);
-#endif
-
        connman_task_add_argument(task, ifname, NULL);
        connman_task_add_argument(task, "-n", NULL);
 }