diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-31 22:54:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-31 22:54:06 +0000 |
commit | 0e03233c91fe6fae7ae14d84ce5d6bf347c938da (patch) | |
tree | 1a841d6e0abd96fee145ccae52c775ceded5f13b | |
parent | 250df3f756a37bf79b03d043a67f95b5f7a72051 (diff) | |
download | gnunet-gtk-0e03233c91fe6fae7ae14d84ce5d6bf347c938da.tar.gz gnunet-gtk-0e03233c91fe6fae7ae14d84ce5d6bf347c938da.zip |
-fixes for HTTP/HTTPS configuration
-rw-r--r-- | src/setup/gnunet-setup-options.c | 28 | ||||
-rw-r--r-- | src/setup/gnunet-setup-transport-http.c | 2 | ||||
-rw-r--r-- | src/setup/gnunet-setup-transport-https.c | 2 |
3 files changed, 28 insertions, 4 deletions
diff --git a/src/setup/gnunet-setup-options.c b/src/setup/gnunet-setup-options.c index dd1a6305..c2caa86a 100644 --- a/src/setup/gnunet-setup-options.c +++ b/src/setup/gnunet-setup-options.c | |||
@@ -1378,7 +1378,7 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = { | |||
1378 | { | 1378 | { |
1379 | "GNUNET_setup_transport_http_port_spinbutton", | 1379 | "GNUNET_setup_transport_http_port_spinbutton", |
1380 | "value-changed", | 1380 | "value-changed", |
1381 | "transport-http", | 1381 | "transport-http_server", |
1382 | "PORT", | 1382 | "PORT", |
1383 | gettext_noop ("Port for inbound HTTP connections, use 0 if behind NAT"), | 1383 | gettext_noop ("Port for inbound HTTP connections, use 0 if behind NAT"), |
1384 | "https://gnunet.org/configuration-http", | 1384 | "https://gnunet.org/configuration-http", |
@@ -1388,9 +1388,21 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = { | |||
1388 | NULL}, | 1388 | NULL}, |
1389 | 1389 | ||
1390 | { | 1390 | { |
1391 | "GNUNET_setup_transport_http_advertised_port_spinbutton", | ||
1392 | "value-changed", | ||
1393 | "transport-http_server", | ||
1394 | "ADVERTISED_PORT", | ||
1395 | gettext_noop ("Port visible to other peers"), | ||
1396 | "https://gnunet.org/configuration-http", | ||
1397 | &load_number, | ||
1398 | &save_number, NULL, | ||
1399 | NULL, NULL, | ||
1400 | NULL}, | ||
1401 | |||
1402 | { | ||
1391 | "GNUNET_setup_transport_https_port_spinbutton", | 1403 | "GNUNET_setup_transport_https_port_spinbutton", |
1392 | "value-changed", | 1404 | "value-changed", |
1393 | "transport-https", | 1405 | "transport-https_server", |
1394 | "PORT", | 1406 | "PORT", |
1395 | gettext_noop ("Port for inbound HTTPS connections, use 0 if behind NAT"), | 1407 | gettext_noop ("Port for inbound HTTPS connections, use 0 if behind NAT"), |
1396 | "https://gnunet.org/configuration-https", | 1408 | "https://gnunet.org/configuration-https", |
@@ -1399,6 +1411,18 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = { | |||
1399 | &highlight_port_collisions, NULL, | 1411 | &highlight_port_collisions, NULL, |
1400 | NULL}, | 1412 | NULL}, |
1401 | 1413 | ||
1414 | { | ||
1415 | "GNUNET_setup_transport_https_advertised_port_spinbutton", | ||
1416 | "value-changed", | ||
1417 | "transport-https_server", | ||
1418 | "ADVERTISED_PORT", | ||
1419 | gettext_noop ("Port visible to other peers"), | ||
1420 | "https://gnunet.org/configuration-https", | ||
1421 | &load_number, | ||
1422 | &save_number, NULL, | ||
1423 | NULL, NULL, | ||
1424 | NULL}, | ||
1425 | |||
1402 | /* FS TAB */ | 1426 | /* FS TAB */ |
1403 | 1427 | ||
1404 | { | 1428 | { |
diff --git a/src/setup/gnunet-setup-transport-http.c b/src/setup/gnunet-setup-transport-http.c index 2820f0a1..f0b208f9 100644 --- a/src/setup/gnunet-setup-transport-http.c +++ b/src/setup/gnunet-setup-transport-http.c | |||
@@ -36,7 +36,7 @@ | |||
36 | void | 36 | void |
37 | GNUNET_setup_transport_http_test_button_clicked_cb () | 37 | GNUNET_setup_transport_http_test_button_clicked_cb () |
38 | { | 38 | { |
39 | GNUNET_setup_transport_test ("transport-http", GNUNET_YES, | 39 | GNUNET_setup_transport_test ("transport-http_server", GNUNET_YES, |
40 | "GNUNET_setup_transport_http_test_success_image", | 40 | "GNUNET_setup_transport_http_test_success_image", |
41 | "GNUNET_setup_transport_http_test_fail_image"); | 41 | "GNUNET_setup_transport_http_test_fail_image"); |
42 | } | 42 | } |
diff --git a/src/setup/gnunet-setup-transport-https.c b/src/setup/gnunet-setup-transport-https.c index 80ae2457..9195339c 100644 --- a/src/setup/gnunet-setup-transport-https.c +++ b/src/setup/gnunet-setup-transport-https.c | |||
@@ -36,7 +36,7 @@ | |||
36 | void | 36 | void |
37 | GNUNET_setup_transport_https_test_button_clicked_cb () | 37 | GNUNET_setup_transport_https_test_button_clicked_cb () |
38 | { | 38 | { |
39 | GNUNET_setup_transport_test ("transport-https", GNUNET_YES, | 39 | GNUNET_setup_transport_test ("transport-https_server", GNUNET_YES, |
40 | "GNUNET_setup_transport_https_test_success_image", | 40 | "GNUNET_setup_transport_https_test_success_image", |
41 | "GNUNET_setup_transport_https_test_fail_image"); | 41 | "GNUNET_setup_transport_https_test_fail_image"); |
42 | } | 42 | } |