Add version to GET info

This commit is contained in:
zzz
2018-02-01 17:38:22 +00:00
parent 16a5e8b884
commit 2c9042ef7d
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import java.util.Set;
public class I2PControlVersion {
/** The current version of I2PControl */
public final static String VERSION = "0.1.0";
public final static String VERSION = "0.12.0";
/** The current version of the I2PControl API being primarily being implemented */
public final static int API_VERSION = 1;

View File

@ -106,7 +106,7 @@ public class JSONRPC2Servlet extends HttpServlet {
protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
httpServletResponse.setContentType("text/plain");
PrintWriter out = httpServletResponse.getWriter();
out.println("I2PControl RPC Service: Running");
out.println("I2PControl RPC Service version " + I2PControlVersion.VERSION + " : Running");
out.close();
}