Comments (6)
--- 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.
Tested it against with the latest xbmc-rbp
from xbmc.
The patch looks ok to me.
from xbmc.
from xbmc.
Fixed ccb09ba
from xbmc.
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)
- Collision of build-in controls, e.g. in DialogAddonSettings.xml HOT 13
- ffmpeg 6: HLS sessions don't work (EOF)
- Cod app
- Playback of playlist stops when sending "Player.GoTo" via JSON API in quick sequence
- cleanonupdate does not work completely for tv shows HOT 6
- Cant play .ogg music files HOT 7
- "Fatal Python error: drop_gil: drop_gil: GIL is not locked" every time kodi exits HOT 2
- Kodi starts with spinning wheel and no sound HOT 2
- Streaming freezes and cuts to source menu HOT 3
- Stream freezes and cuts to source select menu HOT 1
- Splash screen text not centered
- Android app crashes if mysql connection unavailable HOT 1
- Kodi Omega crashes on webdav HOT 3
- Building tools and dependencies fails when building for Android/ARM on WSL Ubuntu 24.04 LTS HOT 1
- Gray Bars on Sony AF8 after being updated to version 21. HOT 24
- no audio payback after sleep then video stops HOT 3
- Any selected mp3 track to be played stays stuck at 00:00 (Flatpak version) HOT 9
- Commit #24064 breaks Bluray folder library addition and playback HOT 3
- Remove kodi built-in keyboard, use system keyboard. HOT 2
- Kodi crashes when 2 concurrent busy dialogs occur (again) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbmc.