Skip to content

Commit

Permalink
2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin committed Jun 5, 2017
1 parent 35e68ca commit e18bebd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tibiachar.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
TibiaChar RPC Server 2.1
TibiaChar RPC Server 2.1.1
Provies Tibia character profile data via a JSON API.
Provides Tibia character profile data via a JSON API.
Hint: Hash the name with a seed, have users put it in their comment section,
and you have a confirmed method of linking tibia profiles to other profiles?
Expand All @@ -20,18 +20,19 @@ Sha.js: $ npm install sha.js

// Config:
const port = 9980; // set the port for the RPC server to listen on. Default for TibiaChar is 9980.
const seed = 'ygfkdsgif87yt7o8fhkshksjhf7'; // CHANGE THIS. 10 - infinity random chars, more chars = more secure, but slower. Around 30 is good.
const seed = 'fjylhojjhnmmjkftjyjtyjyuiuyjthdg'; // CHANGE THIS. Ten to infinity random chars, more chars = more secure, but slower. Around 30 is good.
const allowed = "*"; // Whether the API is public or not. Not a secure method of keeping others out. "*" for public, "localhost" for private.


//This is the code. Don't mess if you think you might break something.
//This is the code.


console.log('-----------------------------------------');
console.log('| _____ _ _ _ _____ _ |');
console.log('| |_ _|_| |_|_|___| | |_ ___ ___ |');
console.log('| | | | | . | | .\'| --| | .\'| _| |');
console.log('| |_| |_|___|_|__,|_____|_|_|__,|_| |');
console.log('------------------------------------v2.1-');
console.log('----------------------------------v2.1.1-');


function tibiachar(){
Expand Down Expand Up @@ -135,8 +136,7 @@ function sha(inp){
}

rpc.use(function(req, res, next){
res.header("Access-Control-Allow-Origin", "*");
//res.header("Content-Type", "application/json");
res.header("Access-Control-Allow-Origin", allowed);
next();
});

Expand Down

0 comments on commit e18bebd

Please sign in to comment.