Changeset 20194
- Timestamp:
- 02/25/13 17:45:04 (11 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r20110 r20194 825 825 if(param == NULL) return NULL; 826 826 827 if(getsockname(connfd, &sin, &len) < 0) 828 { 829 perr("getsockname"); 830 return NULL; 831 } 832 833 ip = inet_ntoa(sin.sin_addr); 834 if(ip == NULL) return NULL; 827 if(getconfigint("webifip", NULL) == 1) 828 ip = getispip(); 829 830 if(ip == NULL) 831 { 832 if(getsockname(connfd, &sin, &len) < 0) 833 { 834 perr("getsockname"); 835 return NULL; 836 } 837 838 ip = inet_ntoa(sin.sin_addr); 839 if(ip == NULL) return NULL; 840 } 835 841 836 842 buf = ostrcat(buf, "#EXTM3U\n", 1, 0); … … 860 866 if(param == NULL) return NULL; 861 867 862 if(getsockname(connfd, &sin, &len) < 0) 863 { 864 perr("getsockname"); 865 return NULL; 866 } 867 868 ip = inet_ntoa(sin.sin_addr); 869 if(ip == NULL) return NULL; 868 if(getconfigint("webifip", NULL) == 1) 869 ip = getispip(); 870 871 if(ip == NULL) 872 { 873 if(getsockname(connfd, &sin, &len) < 0) 874 { 875 perr("getsockname"); 876 return NULL; 877 } 878 879 ip = inet_ntoa(sin.sin_addr); 880 if(ip == NULL) return NULL; 881 } 870 882 871 883 if(fmt == 0) -
titan/titan/httpdsettings.h
r19548 r20194 14 14 struct skin* rguidstart = getscreennode(httpdsettings, "rguidstart"); 15 15 struct skin* rguidport = getscreennode(httpdsettings, "rguidport"); 16 struct skin* webifip = getscreennode(httpdsettings, "webifip"); 16 17 struct skin* tmp = NULL; 17 18 char* tmpstr = NULL, *pos = NULL; … … 38 39 changeinput(httpdport, getconfig("httpdport", NULL)); 39 40 httpdport->input = mask(httpdport->input, 5, "0"); 41 42 addchoicebox(webifip, "0", _("intern")); 43 addchoicebox(webifip, "1", _("extern")); 44 setchoiceboxselection(webifip, getconfig("webifip", NULL)); 40 45 41 46 changemask(streamport, "00000"); … … 92 97 addconfigint("httpdport", hport); 93 98 } 99 100 addconfigscreencheck("webifip", webifip, "0"); 101 94 102 if(streamport->ret != NULL) 95 103 {
Note: See TracChangeset
for help on using the changeset viewer.