Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Last changes
Browse files Browse the repository at this point in the history
Co-Authored-By: Víctor Peñasco <[email protected]>
Co-Authored-By: javiermixture17 <[email protected]>
  • Loading branch information
3 people committed Jan 15, 2020
1 parent 5e6a996 commit dfb34a1
Show file tree
Hide file tree
Showing 4 changed files with 321 additions and 357 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,22 @@ The following projects have been used to achieve this:
* **PostDock** - *Dmitriy Paunin* - [postdock](https://github.com/paunin/PostDock)
* **dockprom** - *Stefan Prodan* - [dockprom](https://github.com/stefanprodan/dockprom)

## Documentation

The full documentation generated with Javadoc for this project is available at the following link:

[Documentation](https://aeri.github.io/ulink/)

<!-- CONTACT -->
## Contributors
## Creators

* [aeri](github.com/aeri)
* [vpec](github.com/vpec)
* [javiermixture17](github.com/javiermixture17)
* [aeri](https://github.com/aeri)
* [vpec](https://github.com/vpec)
* [javiermixture17](https://github.com/javiermixture17)



<!-- LICENSE -->
## License

Distributed under GNU General Public License v3.0. See `LICENSE` for more information.

Distributed under GNU General Public License v3.0. See `LICENSE` for more information.
9 changes: 2 additions & 7 deletions src/main/java/urlshortener/service/GetIPInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.core.io.ResourceLoader;
import org.springframework.stereotype.Service;
import urlshortener.web.UrlShortenerController;

Expand All @@ -26,10 +25,7 @@ public class GetIPInfo {
@Autowired
private Environment EN_US_PATH;

@Autowired
ResourceLoader resourceLoader;

private File file;
private static File file;

public static String token;
public static String en_us;
Expand All @@ -44,7 +40,7 @@ public class GetIPInfo {
public void init() {
token = IPINFO_TOKEN.getProperty("ipinfo.token");
en_us = EN_US_PATH.getProperty("path.en_us");
file= new File(en_us);
file = new File(en_us);
}


Expand All @@ -57,7 +53,6 @@ public void init() {
* @throws IOException
*/
public IPResponse getIpResponse(String addr) throws RateLimitedException, IOException {
log.info("BCD");
ipInfo = IPInfo.builder().setToken(token)
.setCountryFile(file).build();

Expand Down
Loading

0 comments on commit dfb34a1

Please sign in to comment.