Forráskód Böngészése

Remove option gateway from networks

gabriel 6 éve
szülő
commit
2f3164839a
1 módosított fájl, 3 hozzáadás és 4 törlés
  1. 3 4
      src/Docker/Composer/NetworkConfig.php

+ 3 - 4
src/Docker/Composer/NetworkConfig.php

@@ -17,17 +17,16 @@ class NetworkConfig
     }
 
     /**
-     * @param string $driver Subnet. By default 172.172.172.0/16
-     * @param string $gateway Gateway. By default 172.172.172.1
+     * @param string $driver Subnet. By default 172.172.172.0/24
      * @return NetworkConfig Return this object.
      */
-    public function addSubnetGateway($subnet = '172.172.172.0/16', $gateway = '172.172.172.1')
+    public function addSubnetGateway($subnet = '172.172.172.0/24')
     {
         if (!isset($this->config['config'])) {
             $this->config['config'] = [];
         }
         $this->config['config'][] = array('subnet' => $subnet);
-        $this->config['config'][] = array('gateway' => $gateway);
+//        $this->config['config'][] = array('gateway' => $gateway);
         return $this;
     }