Giter Site home page Giter Site logo

Comments (6)

s7mx1 avatar s7mx1 commented on May 13, 2024
--- a/xbmc/Application.cpp.orig 2012-05-25 12:10:36.000000000 +0100
+++ b/xbmc/Application.cpp  2012-05-25 12:16:12.000000000 +0100
@@ -1321,13 +1321,6 @@
   {
     int webPort = atoi(g_guiSettings.GetString("services.webserverport"));
     CLog::Log(LOGNOTICE, "Webserver: Starting...");
-#ifdef _LINUX
-    if (webPort < 1024 && geteuid() != 0)
-    {
-        CLog::Log(LOGERROR, "Cannot start Web Server as port is smaller than 1024 and user is not root");
-        return false;
-    }
-#endif

     bool started = false;
     if (m_WebServer.Start(webPort, g_guiSettings.GetString("services.webserverusername"), g_guiSettings.GetString("services.webserverpassword")))
@@ -1345,6 +1338,16 @@
       CZeroconf::GetInstance()->PublishService("servers.jsonrpc-http", "_xbmc-jsonrpc-h._tcp", g_infoManager.GetLabel(SYSTEM_FRIENDLY_NAME), webPort, txt);
 #endif
     }
+    else
+    {
+      #ifdef _LINUX
+      if (webPort < 1024 && geteuid() != 0)
+      {
+        CLog::Log(LOGERROR, "Cannot start Web Server as port is smaller than 1024 and user is not root");
+        started = false;
+      }
+      #endif
+    }
 #ifdef HAS_HTTPAPI
     if (g_settings.m_HttpApiBroadcastLevel >= 1)
       getApplicationMessenger().HttpApi("broadcastlevel; StartUp;1");

from xbmc.

s7mx1 avatar s7mx1 commented on May 13, 2024

Tested it against with the latest xbmc-rbp

from xbmc.

bobo1on1 avatar bobo1on1 commented on May 13, 2024

The patch looks ok to me.

from xbmc.

bobo1on1 avatar bobo1on1 commented on May 13, 2024

#1015

from xbmc.

bobo1on1 avatar bobo1on1 commented on May 13, 2024

Fixed ccb09ba

from xbmc.

s7mx1 avatar s7mx1 commented on May 13, 2024

bobo,

Thanks for your great work.
On May 31, 2012 11:46 PM, "bobo1on1" <
[email protected]>
wrote:

Fixed
ccb09ba


Reply to this email directly or view it on GitHub:
#1012 (comment)

from xbmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.