limit incoming connections to localhost
This commit is contained in:
parent
e95907663a
commit
d548d34fc9
|
@ -21,7 +21,7 @@ SC3Controller {
|
||||||
};
|
};
|
||||||
|
|
||||||
if(nodes.isEmpty) {
|
if(nodes.isEmpty) {
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/cmd') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/cmd') { |t, r, msg|
|
||||||
{
|
{
|
||||||
thisThread.clock = SystemClock;
|
thisThread.clock = SystemClock;
|
||||||
msg[1].asString.interpretPrint;
|
msg[1].asString.interpretPrint;
|
||||||
|
@ -30,32 +30,32 @@ SC3Controller {
|
||||||
}.add;
|
}.add;
|
||||||
nodes.add(node);
|
nodes.add(node);
|
||||||
|
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/help') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/help') { |t, r, msg|
|
||||||
{ msg[1].asString.openHelpFile }.defer
|
{ msg[1].asString.openHelpFile }.defer
|
||||||
}.add;
|
}.add;
|
||||||
nodes.add(node);
|
nodes.add(node);
|
||||||
|
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/class') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/class') { |t, r, msg|
|
||||||
{ msg[1].asString.interpret.openCodeFile }.defer
|
{ msg[1].asString.interpret.openCodeFile }.defer
|
||||||
}.add;
|
}.add;
|
||||||
nodes.add(node);
|
nodes.add(node);
|
||||||
|
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/implementations') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/implementations') { |t, r, msg|
|
||||||
{ SC3Controller.methodTemplates(msg[1]) }.defer
|
{ SC3Controller.methodTemplates(msg[1]) }.defer
|
||||||
}.add;
|
}.add;
|
||||||
nodes.add(node);
|
nodes.add(node);
|
||||||
|
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/references') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/references') { |t, r, msg|
|
||||||
{ SC3Controller.methodReferences(msg[1]) }.defer
|
{ SC3Controller.methodReferences(msg[1]) }.defer
|
||||||
}.add;
|
}.add;
|
||||||
nodes.add(node);
|
nodes.add(node);
|
||||||
|
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/stop') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/stop') { |t, r, msg|
|
||||||
thisProcess.stop;
|
thisProcess.stop;
|
||||||
}.add;
|
}.add;
|
||||||
nodes.add(node);
|
nodes.add(node);
|
||||||
|
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/clear') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/clear') { |t, r, msg|
|
||||||
{
|
{
|
||||||
Document.listener.string = ""; "";
|
Document.listener.string = ""; "";
|
||||||
postToFront.();
|
postToFront.();
|
||||||
|
@ -63,12 +63,12 @@ SC3Controller {
|
||||||
}.add;
|
}.add;
|
||||||
nodes.add(node);
|
nodes.add(node);
|
||||||
|
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/postfront') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/postfront') { |t, r, msg|
|
||||||
{ postToFront.() }.defer;
|
{ postToFront.() }.defer;
|
||||||
}.add;
|
}.add;
|
||||||
nodes.add(node);
|
nodes.add(node);
|
||||||
|
|
||||||
node = OSCresponderNode(nil, '/sc3ctrl/recompile') { |t, r, msg|
|
node = OSCresponderNode(NetAddr("localhost", nil), '/sc3ctrl/recompile') { |t, r, msg|
|
||||||
{
|
{
|
||||||
thisProcess.recompile;
|
thisProcess.recompile;
|
||||||
postToFront.();
|
postToFront.();
|
||||||
|
|
Loading…
Reference in New Issue