Revision a7af5ddc
Added by Jim Pingle about 14 years ago
etc/inc/vpn.inc | ||
---|---|---|
265 | 265 |
break; |
266 | 266 |
} |
267 | 267 |
|
268 |
$pskconf .= "{$peerid_data}\t{$ph1ent['pre-shared-key']}\n"; |
|
268 |
if (!empty($peerid_data) && !empty($ph1ent['pre-shared-key'])) |
|
269 |
$pskconf .= trim($peerid_data) . "\t" . trim($ph1ent['pre-shared-key']) . "\n"; |
|
269 | 270 |
} |
270 | 271 |
} |
271 | 272 |
|
Also available in: Unified diff
Don't put an empty PSK into the file, and try to avoid extra whitespace to be safe.