Ticket #10660: remote_version.diff

File remote_version.diff, 1.1 KB (added by alex73, 10 years ago)
  • src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java

     
    2323import java.util.regex.Pattern;
    2424
    2525import org.openstreetmap.josm.Main;
     26import org.openstreetmap.josm.data.Version;
    2627import org.openstreetmap.josm.gui.help.HelpUtil;
    2728import org.openstreetmap.josm.io.remotecontrol.handler.AddNodeHandler;
    2829import org.openstreetmap.josm.io.remotecontrol.handler.AddWayHandler;
     
    5253    public static final String PROTOCOLVERSION = "{\"protocolversion\": {\"major\": " +
    5354        RemoteControl.protocolMajorVersion + ", \"minor\": " +
    5455        RemoteControl.protocolMinorVersion +
    55         "}, \"application\": \"JOSM RemoteControl\"}";
     56        "}, \"application\": \"JOSM RemoteControl\"," +
     57        " \"applicationVersion\": " + Version.getInstance().getVersion() + "}";
    5658
    5759    /** The socket this processor listens on */
    5860    private Socket request;