acu141082 don't save gateway in config if gateway is not provided