Project

General

Profile

« Previous | Next » 

Revision c3a74b4e

Added by Josh Galvez over 9 years ago

Make presentation_url customizable

View differences:

src/usr/local/pkg/miniupnpd.inc
228 228
				$config_text .= "secure_mode=yes\n";
229 229

  
230 230
				/* set webgui url */
231
				if (!empty($config['system']['webgui']['protocol'])) {
231
				if (!empty($upnp_config['presentationurl'])){
232
					$config_text .= "presentation_url=" . $upnp_config['presentationurl'] . "\n";
233
				} elseif (!empty($config['system']['webgui']['protocol'])) {
232 234
					$config_text .= "presentation_url={$config['system']['webgui']['protocol']}://{$webgui_ip}";
233 235
					if (!empty($config['system']['webgui']['port'])) {
234 236
						$config_text .= ":{$config['system']['webgui']['port']}";

Also available in: Unified diff