Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
  • If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Länder-Flagge wird nicht angezeigt ...

ThatsPepe

Member
Moin Ihr Lieben,

Auf unseren Server betreiben wir ebenfalls den Sinusbot, aber es wird die Länder Flagge nicht angezeigt, obwohl ich die Local IP 127.0.0.1 des Server ersetzt habe durch die IP Adresse etc. Denke mal sollte klar sein das Thema.

Vielleicht hat jemand eine Idee voran es noch liegen kann.

Gruß
Pepe
 

Lala Sabathil

Donor
is awesome!
Contributor
Insider
Wenn der Server und der bot aufm gleichen Host laufen ist das kein Wunder. Die ip selbst wird sehr wahrscheinlich intern auf sich selbst zurück führen.

Und ich glaube kaum dass es wichtig genug ist das der bot eine Länder Flagge hat. Das ist kein sinusbot bug / Fehler.

So funktioniert Teamspeak halt.

Sorry
 

itsme

Donor
is awesome!
Wenn der Server und der bot aufm gleichen Host laufen ist das kein Wunder. Die ip selbst wird sehr wahrscheinlich intern auf sich selbst zurück führen.

Und ich glaube kaum dass es wichtig genug ist das der bot eine Länder Flagge hat. Das ist kein sinusbot bug / Fehler.

So funktioniert Teamspeak halt.

Sorry
Kann ich nicht bestätigen. Bei mir läuft der Bot auch auf der selben Maschine und es werden die Länderflaggen angezeigt. Mit localhost nicht.
 

Jniklas2

Donor
is awesome!
Insider
Kann ich nicht bestätigen. Bei mir läuft der Bot auch auf der selben Maschine und es werden die Länderflaggen angezeigt. Mit localhost nicht.
So oder so ist es ein TeamSpeak Problem, da der TeamSpeak Server eine Datenbank mit IP-Adressräumen inkl. dazu gehörigem Land und diese Datenbank mit der IP Adresse des TeamSpeak Clients, welcher sich verbindet, abgleicht. Allerdings ist diese Datenbank 1. veraltet und 2. nicht vollständig, wodurch es schonmal passieren kann, dass die Flagge falsch oder überhaupt nicht angezeigt wird.

Ob man die Datenbank updaten kann? Ka, wahrscheinlich irgendwie, fragt jetzt aber bitte nicht wie.
 

Multivitamin

Well-Known Member
Tier III
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Tatsächlich kannst du eine eigene GEO Location Datenbank verwenden wenn du den mmdbpath paramter beim starten von teamspeak mit angibst
Generell wird erklärt wie man das nutzt in der server_quickstart.md im doc folder deines teamspeak servers

Code:
* mmdbpath (*empty*)
  Set to the path of an MMDB file to use this as a source for GeoIP lookups. Requires libmaxminddb installed, which can be found in most Linux distributions as a package. Windows users can use the .dll found in the redist folder.



Code:
## Using alternate GeoIP databases

The server comes with a built-in geoip lookup to resolve user IP addresses to the country the IP address is assigned to (as seen by the country flags in the client), provided by IP2Location. TeamSpeak Server 3.13.0 also features optional support for specifying your own GeoIP database in the standard MMDB format. It is your responsibility to source and maintain this database. The server does not make any calls to third-party web services, and only works with 'offline' databases.

Note there is no way to use both databases - it's either an external one OR the built-in IP2Location.

### Requirements

Use of this feature requires libmaxminddb to be installed (this can be found in the package library of most Linux distributions). For Windows, you can find a maxminddb.dll in the 'redist' folder - please move or copy this into the parent folder.

It is not supported on FreeBSD or macOS.

### Usage

To use this, first find yourself a database in MMDB format, and use the `mmdbpath` command line parameter to specify the path. Please make sure you store it somewhere the TeamSpeak server has access to. If it was found, the logs should say something like:
```sh
>./ts3server mmdbpath=geoip-lite.mmdb
...
2020-07-07 10:06:02.075369|INFO    |GeoIP         |   |mmdb database found and will be used for geoip lookups
```

If there is a problem, the server will warn you and 'fall back' to the built-in implementation, as you can see here:
```
>./ts3server mmdbpath=FAKEPATH
...
2020-07-07 10:06:57.759774|WARNING |GeoIP         |   |mmdb database open returned failure (check mmdbpath) : Error opening the specified MaxMind DB file
2020-07-07 10:06:57.759812|WARNING |GeoIP         |   |falling back to standard implementation
```

Both 'lite' and 'full' IP databases should work, with 'full' databases perhaps offering greater precision - but remember that GeoIP is never 100% accurate.
 
Top