~ubuntu-branches/ubuntu/karmic/vpnc/karmic

« back to all changes in this revision

Viewing changes to vpnc-script-win.js

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2007-12-23 15:42:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20071223154252-jvgomqxzjc8p22ox
Tags: 0.5.1r275-1
* New upstream SVN snapshot with various bugfixes
* A very very very very urgent "fix" from Nicolas Duboc to put cisco-decrypt
  into /usr/lib/vpnc (closes: #454236)

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        echo("Interface: \"" + env("TUNDEV") + "\"");
44
44
 
45
45
        echo("Configuring \"" + env("TUNDEV") + "\" interface...");
46
 
        run("netsh interface ip set address " + env("TUNDEV") + " static " +
 
46
        run("netsh interface ip set address \"" + env("TUNDEV") + "\" static " +
47
47
            env("INTERNAL_IP4_ADDRESS") + " 255.255.255.0");
48
48
 
49
49
        // Add direct route for the VPN gateway to avoid routing loops
78
78
                        var netmasklen = env("CISCO_SPLIT_INC_" + i +
79
79
                                         "_MASKLEN");
80
80
                        run("route add " + network + " mask " + netmask +
81
 
                             + " " + env("INTERNAL_IP4_ADDRESS"));
 
81
                             " " + env("INTERNAL_IP4_ADDRESS"));
82
82
                }
83
83
        } else {
84
84
                echo("Gateway did not provide network configuration.");