mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-05-02 07:34:38 +02:00
Just loopback
This commit is contained in:
parent
3d3b97117a
commit
5d409e2773
@ -4,6 +4,7 @@ import com.sun.net.httpserver.HttpServer;
|
|||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
import java.net.InetAddress;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.net.URLConnection;
|
import java.net.URLConnection;
|
||||||
@ -64,7 +65,7 @@ public final class KissVideoStreamServer {
|
|||||||
|
|
||||||
public void start(int port, String context) throws IOException
|
public void start(int port, String context) throws IOException
|
||||||
{
|
{
|
||||||
_httpserver = HttpServer.create(new InetSocketAddress(port), 0);
|
_httpserver = HttpServer.create(new InetSocketAddress(InetAddress.getLoopbackAddress(), port), 0);
|
||||||
printStatusOK("Kissvideostreamer on localhost:"+STREAMER_PORT+" (Waiting for request...)");
|
printStatusOK("Kissvideostreamer on localhost:"+STREAMER_PORT+" (Waiting for request...)");
|
||||||
_httpserver.createContext(context, (_http_handler = new KissVideoStreamServerHandler(this, _main_panel)));
|
_httpserver.createContext(context, (_http_handler = new KissVideoStreamServerHandler(this, _main_panel)));
|
||||||
_httpserver.setExecutor(Executors.newCachedThreadPool());
|
_httpserver.setExecutor(Executors.newCachedThreadPool());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user