diff src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java @ 78:fc984746f958

use real ip address for TreeVNC root selection
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 30 Apr 2014 10:34:07 +0900
parents cdf7bbe45885
children 015321785ddf
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java	Tue Apr 29 18:00:34 2014 +0900
+++ b/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java	Wed Apr 30 10:34:07 2014 +0900
@@ -29,11 +29,13 @@
 	}
 
 	private void modeSelect(String[] args) {
+	    viewer = true; // default
 		for (int i = 0; i < args.length; i++) {
 			if ("-p".equals(args[i]) || "-r".equals(args[i])) {
 				// no display. behave as root.
 				// relay rfb update to clients.
 				treeProxy = true;
+				viewer = false;
 			} else if ("-d".equals(args[i])) {
 				// behave as root with display.
 				// use this on main display such as large tv.